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...
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>")...
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...
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...
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...
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:...
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...
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...
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...