Questions tagged as 'json'

1
answer

json_encode Empty

Below my PHP code. It takes the data from the database, puts it in an array, and then passes it through a json_encode. However, it does not print anything, how to solve? Note: Using print_r in the array it is possible to perfectly visualize t...
asked by 27.01.2016 / 19:54
1
answer

JsonResult request with decimal type

Because when I send a request with a decimal type (3) the "Point" is deleted, see in the INSS field which is a decimal value, for example: I type 1,69 when doing a bind in the model the point is eliminated and transformed into 1690...
asked by 31.01.2016 / 20:58
1
answer

JSON does not arrive complete when sending by Bundle

I'm trying to get the return of a push in android through the Bundle, however I'm having some problem performing bundle.getString("Message"); because it does not get all my answer that is in JSON format, it follows the format of the messa...
asked by 07.03.2016 / 15:22
1
answer

Extract data from a json file using SimpleJson?

json file that I'm using. { "url" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xaf1/t51.2885- 15/s320x320/e15/12523558_1184627644899567_723648549_n.jpg", "low_resolution" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xfp1/t5...
asked by 12.01.2016 / 21:29
1
answer

Delphi xe8 Multi-Device Json post

Delphi Client: procedure TForm7.Button7Click(Sender: TObject); var code : Integer; sResponse : String; Json : String; JsonToSend : TStringStream; begin Json := '{"email" : "[email protected]", "password" :...
asked by 02.02.2016 / 17:30
1
answer

Create JSON with Hierarchy through Excel

I have a table with a tree of products. Category, Group and Subgroup. When I export json to excel, the file exits without hierarchy: As in this example: [ { "id_cat": 4, "desc cat": "Acessorios para Veiculos", "id_gr": 1,...
asked by 03.02.2016 / 01:37
1
answer

Mongodb query and return specific array elements within objects

Well, I need a help to query certain values in a document. I have a collection in the mongo that follows this structure, including this is the document I can get and find: link The find this easy I find document without problems using th...
asked by 06.01.2016 / 14:10
1
answer

Help between communication between clients WEBSERVICE REST - JSON - JAVA

I'm developing an Android application where devices can communicate with each other through messaging (instant messaging). My application is already connecting to the Web Service (I developed it using NetBeans) and the Web service connecting...
asked by 22.02.2016 / 14:36
1
answer

Error sending ArrayList via POST in Retrofit 2: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING

When I try to send an ArrayList via @POST to be saved in my webserver with Retrofit2, the ArrayList is saved, however I am getting the following error:    java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1...
asked by 29.12.2015 / 14:34
1
answer

problems inserting html into a Json Java object

When inserting html content within an object Json It is inserting a \ next to all the tags in the closing tags. example: input: obj.put("html","< head>< / head>"): output: "< head>< \/ head>" How...
asked by 28.12.2015 / 17:44