Questions tagged as 'json'

1
answer

JSON Data format

Hello, I have a webservice that needs to fetch some data in the database and return a json object and I'm having problems with the date. here is the object import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.dat...
asked by 10.10.2017 / 22:11
1
answer

Sweep json object with $ .each jquery

I'm making a request to my Servlet and getting the json data as per the code below: $(document).ready(function(){ $.post("MesaController",function(response){ $.each(response,function(i,v){ $("<button>")...
asked by 03.11.2017 / 05:13
1
answer

Variable in php for javascript

I'm using HighChart to create graphics, but I'm not able to pass the value of data through a php variable: series: [{ name: 'Tendência', data: <?php echo $encodeValorTendencia; ?> },{ name: 'Obtenção', d...
asked by 25.09.2017 / 18:10
1
answer

Retrieve data json ajax [closed]

I have this request: <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#ajax_form').submit(function(){ var dados = jQuery( this ).serialize(); jQuery.ajax({ t...
asked by 25.09.2017 / 14:55
1
answer

Reading in JSON file generating error

I'm trying to do a read in JSON, and result what I want in a div but my console is returned the following error, XMLHttpRequest cannot load JSON file: {"content":{"nome":"Josimara","pais":"brasil"}} HTML <script type="text/javascr...
asked by 25.09.2017 / 20:59
2
answers

Pulling data in JSON

I have a question about JSON. I need to pull the information inside the array. But I do not have the reference that would be the name of champion that is inside the date I need to find, the only thing you have is the key . JSON Base:...
asked by 16.09.2017 / 10:20
1
answer

JSON returns STRING instead of ARRAY

The following code is returning an array as a string and therefore I can not distribute the data to popular flot chart. O PHP code: <?php include_once("config.php"); $viagemid = $_POST['id']; $results_array = array(); $sql = "SELEC...
asked by 04.09.2017 / 22:47
1
answer

Picking up a json string

I'm wondering if I'm querying an api and it returns me this: "{\"optimized\": null, \"optimized_slo\": null, \"normal_slo\": {}, \"normal\": {\"estimated_cost\": \"28.40\", \"distance\": 10198, \"original_eta\": 2236, \"path_suggested_gencoded...
asked by 31.08.2017 / 07:24
1
answer

JavaScript Array with JSON object

I have the following objects: var category = [ {"category" : "fruity"}, {"category" : "Cakes"} ] and var products = [ {"description" : "Apple", "price" : 12.99, "category" : "Fruity"}, {"description" : "Peach", "price" : 1...
asked by 01.09.2017 / 00:38
1
answer

How to repeat Json data in a list

How to list all students (name), the series (degreeId) and classes (classId) of this Json file. [ { "id":1, "ra":12346, "name":"Pedro Santos Neves", "degreeId":1, "classId":1 }, { "id":2, "ra":456798, "name":"Ma...
asked by 10.08.2017 / 20:12