Questions tagged as 'json'

1
answer

Return list of JSONs

In path /getAll I want to return a list of JSONs however I get an object is not callable , why does this occur and how can I return to my JSON list? MyList was called list and after reading the following definition of callable the e...
asked by 27.03.2016 / 21:57
1
answer

Why can not I get ajax request data? (json)

I have the following code: script.js: function maisDetalhes(id){ $.ajax({ url:'paginaDados.php', type:'GET', data:'id='+id, dataType:'json', success:function(data){ alert(data.id_event); } }); and pageDados.php: foreach ($Dados as...
asked by 17.09.2016 / 01:12
2
answers

JSON x Web Services

1 - What is the difference of JSON for Web Services? (Only the format type on return)? 2 - In terms of performance, which would be better? 3 - In practice should I use JSON (with a php or java file for example) to integrate my applications...
asked by 15.03.2016 / 20:48
1
answer

Return JSON giving as undefinided in jQuery

I have this ajax request: $.ajax({ type: "POST", url: "retorno.php", success: function(data){ alert(data["nome"]); }, error: function(erro){ alert(erro); } }) And the file return.php: <?php...
asked by 29.02.2016 / 13:11
1
answer

How to pass to Array JSON information in Swift

When the result comes from the server I use the following code snippet to get the result: if let JSON = response.result.value { print("JSON: \(JSON)") } And the print result is: [{ Nome = Tiago; Idade = 22; Cidade = Minas; },...
asked by 12.02.2016 / 16:23
2
answers

How to load img into jquery

Hello everyone, I would like to know how to load image into an append (); follow the link append("<tr><td>"+value.codigo+"</td><td>"+value.nome+"</td><td>CARREGAR IMAGEM AQui</td><tr>");     
asked by 17.12.2015 / 20:19
2
answers

Read string json in php

I need to read the file below: string '{"object":"list","hasMore":true,"limit":10,"offset":0,"data":[{"city":{"object":"city","id":15873,"ibgeCode":"3550308","name":"São Paulo","districtCode":"00","district":"São Paulo","state":"SP"}},{"city...
asked by 07.11.2015 / 21:25
1
answer

Retrieve Item jSON - Facebook API

I'm working with the Facebook API and I'm trying to retrieve an item from jSON, but I'm not getting it. First of all, this is the jSON that is returned to me from the Graph Facebook API . { "data": [ { "message": "Boa T...
asked by 30.09.2015 / 14:24
1
answer

Interpret the JSON response of a WebService that was called by the Arduino

How do I interpret information from a WebService that was called by Arduino? The WebService returns a JSON and needs to interpret it. An example of the answer can be seen below: [{"valor":"10"}] The code below, obtained from this sit...
asked by 02.12.2015 / 14:53
1
answer

Spring, Angular JS and exception handling in the Service layer

I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax . The application is all set to receive o...
asked by 04.12.2015 / 13:44