Questions tagged as 'json'

1
answer

JSON API cache in Xcode

I want to cache the JSON API from my Wordpress in my app. I want a cache of tableview cells and UIWebView for when in airplane mode or off or with bad signal, the user can still see. I tried caching with AFNetworking and NSURLCache...
asked by 02.08.2014 / 03:44
1
answer

Save Json dictionary in txt

How can I save one. dictionary json from a requests in txt. I tried to do this way more did not work. import requests import json url = requests. get("https://search.ams.usda.gov/farmersmarkets/v1/data.svc/zipSearch?zip=46201") response = jso...
asked by 08.11.2018 / 03:57
1
answer

Sending information from a JavaScript site to the NODE.js server

Well, I have a site in javascript where I get information from a Rest API (json) I would like to get this information to my server (A node.js that I created that connects to the database) It's my first time working with web development, wo...
asked by 31.10.2018 / 16:27
1
answer

JSON for POJO returning Null

I am making a request from the site API swapi and whenever I do the conversion from JSON to POJO, I get the NULL return RestTemplate restTemplate = new RestTemplate(); String fooResourceUrl = "https://swapi.co/api/planets/?format=json"; Plan...
asked by 25.12.2018 / 03:04
1
answer

How to call a modal in View by Controller's ActionResult

How to call a modal by ActionResult of the Controller, after the user clicks the button to register? Currently the controller is redirecting to the index page after the user signs up. I want instead of redirect, call the modal that is in the...
asked by 25.10.2018 / 17:48
1
answer

How to check if an id exists on the [duplicate] page

I made a JavaScript that generates several cards each with an id, to avoid creating repeated cards I put an if before the generation of the cards to verify that it already exists, but it did not work: $(document).on('click', '#carregarMaisFi...
asked by 28.10.2018 / 01:16
1
answer

Complete form without reloading the page

I'm trying to implement a page where the values of a table can be changed in the database of a system. When I select the name of the people listed, I call the function ola through onchange , which is working perfectly, but when t...
asked by 22.10.2018 / 15:30
1
answer

Getting information from a JSON and saving in SQL Server using JavaScript

I have this code, which returns the information I want and shows on the page. Now I would need to save this information in a SQL Server database, how would that be possible? It's been really hard for me since I've never worked with API, JS...
asked by 22.10.2018 / 23:40
1
answer

How to get data from an array without using the Index

I am trying to get data through an API (bet365) it returns this data in JSON, I have created a function to extract this data and transform into array The following function:        public function api_footer () { $url = "https://api.betsap...
asked by 30.11.2018 / 00:29
2
answers

Create array inside the JSON object

I am creating an array in JSON, and would like to know how to create another array inside the object. var objeto; objeto = { "item" : [ { "id" : delDiv, "nome" : nomeItem.value, "cod" : codItem.value }...
asked by 26.09.2018 / 15:21