Questions tagged as 'json'

1
answer

I can not "read" a JSON

I'm working on the FLUIG (TOTVS) tool, and I want to read a JSON that is delivered via REST. Here is a photo of the URL (intranet): Content:{"content":{"Matrícula_RH":"10555","UserDocLanguage":"pt_BR","UserEmailHTML":"true","UserProjects":""...
asked by 28.03.2017 / 13:32
0
answers

Error: HTTP Status 500 - org.json.JSONObject can not be cast to jdk.nashorn.api.scripting.JSObject

In my java system this error appeared: I'msweatingthePOSTMANtooltostudythecase.  HTTPStatus500-org.json.JSONObjectcannotbecastto  jdk.nashorn.api.scripting.JSObjectCode:importjava.io.BufferedReader;importjava.io.IOException;importjava.io.Pri...
asked by 25.03.2017 / 00:50
1
answer

Gson does not work

I have a WCF service that returns a Json to be consumed on an Android App, as you can see on the link However, Gson is not serializing in the specific POJO. public class VeiculoContainer implements Serializable { private String i...
asked by 02.04.2017 / 09:49
1
answer

How can I get the value of a div with id = x

Well, what I want to do is do the following: I have the index.html page, with javascript I want to make a json that gets me the value of a div with id="x" from the test.html page. How can I do this?     
asked by 23.03.2017 / 00:02
2
answers

Error displaying array return json in php

Error:    Notice: Trying to get property of non-object in   C: \ xampp \ htdocs \ json \ get_json.php on line 6 My php code: <?php $get = 'https://maps.googleapis.com/maps/api/place/autocomplete/json?&location=-18.866269,-41.95...
asked by 22.03.2017 / 21:21
2
answers

My program gives error when array value is null

I have a program that pulls reports from a system, I'm including one more table in the program. The data that is read comes from an array but sometimes it is empty, and when it does, the program gives error. I put an if to check if the vari...
asked by 20.03.2017 / 17:57
2
answers

Laravel's JSON return is asynchronous?

I have an API in Laravel, with a show(id) method that returns a response->json($array) . Within this function I have a foreach , my problem is in response , which does not wait for the foreach to finish and the...
asked by 16.03.2017 / 21:59
0
answers

Creating multi-point custom map, manageable by Wordpress

Do you know how to generate a json file in wordpress ?. I'm trying to create a map where custom dots are manageable by Wordpress, I'm using the ACF Advanced Custom Fields plugin where you create a custom field of the map type and can print...
asked by 13.03.2017 / 16:12
3
answers

Attempt to manipulate values of a vector generated by a JSON

I'm trying to "change" values of a received vector from the consumption of a JSON. My logic was to create a for to go through the vector, parse the item on that partition and rewrite it in a copy vector, thus having a vector with the valu...
asked by 08.03.2017 / 00:51
0
answers

Upload Mysql Google Chart data

Could anyone help me? I can not load the data from Mysql in Google Chart ... if I use this same code, but in the "Pie" chart, it works, but in the non-line ... it draws the chart but not with data ... <!DOCTYPE html> <html> <he...
asked by 22.03.2017 / 02:28