Questions tagged as 'json'

1
answer

Array of data retrieved from a response

I have a rest service that returns macs from a scan, the json model and this: { "macs": [ { "mac": "9C:5C:F9:66:73:34" }, { "mac": "B8:A3:E0:72:9E:EA" }, { "mac": "00:E0:4C:2A:26:60" }, {...
asked by 10.08.2017 / 17:59
1
answer

Retrieve data from the Json Return

I'm getting a return from a URL in JSON, but I'm not able to retrieve the answers, so I get the first array and then another array that I can not recover Code $json_file = file_get_contents("http://servidor.sys.net/sendsms?username=xxx...
asked by 04.08.2017 / 01:40
1
answer

Return Vector in Array JSON Retrofit

How do I bring information from a vector into another vector in json format for the retrofit: I have my feedback: [ [ {"prato":"BROCOLIS C\/ SALSINHA"}, {"prato":"ACELGA"}, {"prato":"ALFACE + JERIMUM COZIDO"} ], [ {"pr...
asked by 02.08.2017 / 17:58
1
answer

Store data in JSON in MySQL

I have a database in Mysql where, as the project is being developed, the number of fields in some tables has grown exponentially. The People table, for example, has fields related to personal documents, home address, work address, personal da...
asked by 14.08.2017 / 04:53
1
answer

Object list for another activity

I'm trying to save a list of objects with sharedpreference and gson. And the idea is that I can load this list into a ListView, I did the tests and when it goes to listVIew it loads only the packages, photos: Choose Products - FINAL SCREEN...
asked by 22.09.2017 / 18:23
1
answer

How to authenticate Json with php by passing header

I have the following documentation, I would like to know how to do the authentication, and if possible where I can get study material that has an example to perform such authentication. link BASE URL: All calls from this module must star...
asked by 21.09.2017 / 19:31
1
answer

How to decode values coming from javascript?

Good evening everyone! Personal, following, I'm getting the following variable from an application in angulajs: Array ( [{"nome":"volks","descricao":"conheça_o_novo_modelo_da_volks"}] => ) How can I convert it so that I can access its...
asked by 17.08.2017 / 04:17
1
answer

Accessing a JSON with JS

I was trying to access a JSON with JS, here is an example of how they are: { status: "0", ano: "Não Informado", competencia: "Não Informado", id_Publication: "8" } But in fact this is only part of the full JSON. This is " a multid...
asked by 16.08.2017 / 21:34
1
answer

Minute-by-hour chart with chart js

I do not know if I'm going to be clear, but I'd like to make a graph showing the line of CPU utilization per minute with Chart JS, but with the Y axis rounding by the hour. I was able to do the rounding using parameters of the tool itself, howev...
asked by 31.07.2017 / 23:16
2
answers

How to define Enumeration in JSON

I have the following enumeration in XSD for a WSDL <xsd:simpleType name="tipoDocumento"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="INICIAL"/> <xsd:enumeration value="FINAL"/>...
asked by 03.07.2017 / 13:48