Questions tagged as 'json'

1
answer

Dealing with JSON differences because of previous versions

What is the best way to deal with the following problem: I have a mobile iPhone and Android application that sends and receives data to a Webservice using JSON. My application needs to work offline, with users being able to stay weeks without...
asked by 13.10.2016 / 22:20
1
answer

Retrieve response from a post using guzzle

I'm trying to get the response from a json porst with guzzle in a simple php. This is the function in a laravel project that does the post for a url. (I'm using var_dump to show the result in the terminal). public function getPhotos($proper...
asked by 10.11.2016 / 13:47
1
answer

Form with Ajax / Json / PHP

Alright? could they help me with the following problem. I see several people talking about creating forms with Json / Ajax and everything, but like, I'm way out of this still. But I had the need to prepare a form as follows. The form wo...
asked by 23.10.2016 / 01:11
2
answers

How to store the value of the indexes of this JSON in variable?

I have a function in php that returns this to me. [{"id":81,"username":"usuarioteste23"}] How can I save a Username and variable in a variable? Thank you.     
asked by 21.01.2016 / 11:57
1
answer

onMapReady performs faster than the function that retrieves the location

Hello, I'm trying to use map help in my application. I retrieve the coordinates through Json, the problem is that the function that takes up the coordinate (onMapReady) executes faster than the function that retrieves the coordinates. public...
asked by 22.09.2016 / 16:13
1
answer

Retrieve php mysql query with ajax

Hello! I would like a help to know how to recover data from the php mysql query and present it on the page that made the request via ajax, this code currently displays error 'can not read property' items' of null. I would like to retrieve the se...
asked by 21.09.2016 / 04:46
1
answer

How to save data from a JSON consisting of arrays?

Hello. I have a JSON that has the following structure: { "_id": { "$oid": "3432fa43242" }, "posts": [{ "thread": { "uuid": "2911da", "url": "http://www.google.com", "site_full": "opiniaoenoticia.com.br",...
asked by 25.09.2016 / 22:51
1
answer

Convert JSON to map [closed]

I'm getting a json in the key :body of the response using a request clj-http . How to make this json into map?     
asked by 03.10.2016 / 21:26
1
answer

How to create Array with DB content

I'm trying to create an array with the contents of a tabela of my banco but I do not know how, I tried to do this: // ATRIBUI UMA CONEXÃO PDO $pdo = Conexao::getInstance(); // ATRIBUI UMA INSTÂNCIA DA CLASSE CRUD $crud = Crud...
asked by 03.10.2016 / 23:54
1
answer

How to transform a JSON that contains an array of objects into a list of objects?

Good evening. I have the following JSON: { "_id": { "$oid": "3432fa43242" }, "posts": [{ "thread": { "uuid": "2911da", "url": "http://www.google.com", "site_full": "opiniaoenoticia.com.br", "site": "opiniaoenoticia.com....
asked by 26.09.2016 / 01:13