Questions tagged as 'json'

1
answer

Chart.js - Line Type - JSON - SQL Server

I'm setting up my first Chart. When I use constants in the date the chart renders normally, but when I load sql database information I do not have the same success. Follow the code ... <div id="canvas-holder1" style="width: 100%;"> &...
asked by 06.11.2016 / 00:47
0
answers

querying and converting to array of objects [closed]

I need to query and convert rows of code and location to array of objects in javacript, but im having some issues, could someone help me. My code here: $sql = "SELECT code, city_name FROM airports"; $consulta = mysql_query($sql); while($mo...
asked by 24.11.2016 / 19:00
2
answers

How do I perform an insert in php where the data is passed by a json that has an object

How do I perform an insert in php where the data is passed by a json that has a non-primitive variable in the object. This is my Json {"id":0,"latitude":-8.0326941,"longitude":-34.9287402,"status":1, "tipovaga":{"descricao":"no aplication"...
asked by 23.09.2016 / 08:52
0
answers

Using two JSON files with JQuery [closed]

Good morning / afternoon / evening, I'm doing a college job trying to put 2 JSON files and compare a key, for example, the first file will have several addresses and a key relating them, that key I put as "key" : 1, and in the second file will h...
asked by 28.09.2016 / 01:32
1
answer

Javascript JSON.parse (jsonEmText) works on Linux but not on Windows. How to solve?

Hello everyone. I have an HTML page that uses AngularJS to display a JSON that is passed using encodeURI() . On Linux I can pass this JSON with no problems, but when the same page function is done in Windows, it gives format...
asked by 06.10.2016 / 15:51
1
answer

Show Json data inside a Form Html

I have a Grid with the edit button when I click on it it accesses the Controller and brings the data into a Json and "Theoretically" was to return that data in a Modal. When I type Url .... show / (ID) the Json data appears but I am not able...
asked by 25.08.2016 / 20:57
1
answer

How to convert the curl request into java (Android)

I hope to convert the below example in CURL to Json in Java / Android. The IUGU API supports JSON or XML. I tried several examples on the internet, but without success. CURL: $ curl https://api.iugu.com/v1/payment_token \ -d "account_id=...
asked by 24.08.2016 / 17:41
1
answer

Array repeats simultaneously in json

I am trying to make a calendar where I will get the information in a rest request in angularjs. What I want to create is a calendar where you can register your events. With the json date attribute it inserts this event and registers an icon on t...
asked by 28.10.2016 / 17:20
1
answer

Get JSON values using Shell script

I need to list the values of the number and url fields using the json shell script below: [{ "numero": "001", "local": "brasil", "url": "http://brasil.com.br", "ipv4": "10.10.0.1" }] I'm using this here: curl -s 'http://bras...
asked by 04.10.2016 / 21:32
0
answers

Capture links in JSON for each recyclerView and appear data from the link that was captured which is another JSON (complicated)

So it's complicated to ask, but anyway, this is the logic: [ { "name": "http://meusite/dados1.json"}, { "name": "http://meusite/dados2.json", }, { "name": "http://meusite/dados3.json"} ] So as it was seen, I do not want to pass data str...
asked by 04.10.2016 / 00:07