Most voted "json" questions
JSON (Javascript Object Notation - Javascript Object Notation) is a lightweight data exchange formatting. For humans, it is easy to read and write. For machines, it is easy to interpret and generate. It is based on a subset of the Javascript programming language, Standard ECMA-262 3rd Edition - December/1999.
Learn more…3,116 questions
Sort by count of
-
1
votes1
answer558
viewsrecover data from JSON file
I am needing to implement a translation into a plugin called pikaday, which is actually a datepicker, and as the site is multilingual I am trying to implode the i18n. pulling translations from a…
-
1
votes1
answer1116
viewsCommunicating with the Google Calendar API using REST
I’m using Scribe to authenticate with the API of Google Calendar. Authentication with Google is successfully done by returning the accessToken hassle-free. When I try to add one CalendarList,…
-
1
votes1
answer218
viewsFilter through multidimensional objects with underscore.js
How do I filter objects by the operations attribute inside json? var data = Object entrada_diff: "00:00:00" entrada_hoje: "00:00:00" entrada_jornada: "08:00:00" entrada_status: "PENDENTE"…
-
1
votes2
answers89
views -
1
votes2
answers679
viewsJava generate JSON from a string
I’m a beginner in programming and I’ve never worked with json I’m doing a work on graphs and to make the graphical representation of the graph I need to generate a json with the graph data, I made a…
-
1
votes1
answer522
viewsHow to display the values of a JSON via PHP?
How can I display the values of a JSON via echo in PHP, I am using the code below to receive the JSON from the Post Office website $json_file =…
-
1
votes1
answer141
viewsHow to get the url for this Json (java android)
{ "success":[ { "url":"http:\/\/stream.vagalume.fm\/stream" } ], "format":"mp3", "remaining":0 } how to get the url, format and remaining separately…
-
1
votes1
answer895
viewsLazarus accents in JSON
I’m having a problem with accentuation in Lazarus, when I get a JSON coming from a URL it returns characters like " u00ed" instead of "í", someone knows what I can do? Follows the code procedure…
-
1
votes2
answers276
viewsHow to load img in jquery
Hello folks would like to know how to load image inside an append(); follows the link append("<tr><td>"+value.codigo+"</td><td>"+value.nome+"</td><td>CARREGAR…
-
1
votes1
answer640
viewsDates with JSON /Highcharts
I have a problem with dates while plotting a Highcharts chart using JSON object. Data referring to date information is being displayed as follows: The Server sends JSON as follows to the client:…
-
1
votes1
answer419
viewsHow to use the "Answer" of an XMLHTTPREQUEST in Cakephp (2.5)
CONCLUSION: I put it up here to get a quick look, I was using onClick to get this function, but I was leaving the request(request) out of function so it wasn’t working. I have an action in the Posts…
-
1
votes1
answer76
viewsFOR with getJSON file URL
I need to make a FOR with getJSON file. As is the correct form? selectOcorrencias = $.getJSON("http://izicondominios.com.br/appOperacoes.php?operacao=selectOcorrencias&condominioID=2"); for…
-
1
votes1
answer365
viewsproblems inserting html into a Json Java object
When inserting an html content into an obj Json He is inserting a \ next to all closing tags bars. example: input: obj.put("html","< head>< / head>"): output: "< head>< \/…
-
1
votes2
answers1260
viewsConsume Webservice from an external link
While consuming a webservice an external URL via the link in the browser http://api.postmon.com.br/v1/cep/30640-240 returns the following JSON message: {"complement": "from 9201 to the end -…
-
1
votes1
answer262
viewsPHP variable in JS inside While
I am creating a chart using Chart.js and PHP, I would like the value to come from a PHP array with the input of a JS variable. This is the code of what I tried to do. <script…
-
1
votes1
answer60
viewsHow to ignore an error using Json.NET without damaging what has already been read
Is there any way to continue the "de-realization" of an object, using Json.NET, even when a property is corrupted and without damaging what has already been "read"?…
-
1
votes0
answers108
viewsProblems generating JSON with JAVA
I’m having trouble generating this json { "receita": [{ "specialtys": [{ "date": "27/01/2016 00:00:00", "itemSpecialtys": [{ "specialtyId": 1, "specialtyName": "Tabelionato de Notas", "receitas": [{…
-
1
votes1
answer1952
viewsQuery the database send and use javascript
My difficulty is after sending to java script how to separate each record: Example: In my code I’m running this function: $culturas=array(); $resultado=mysqli_query($conexao,"select *from…
-
1
votes1
answer49
viewsWhat is the best way to work with user data coming from the server?
I’m on a project for an online sales (mobile) app. What is the best way to work with data from tables? Sqlite, JSON, creating a class, Localstorage? For example, when soon, I don’t want to be on the…
-
1
votes1
answer456
viewsHow to pass to Array JSON information on Swift
When the result comes from the server I use the following code snippet to receive the result: if let JSON = response.result.value { print("JSON: \(JSON)") } And the result of the print is: [{ Nome =…
-
1
votes1
answer150
viewsShared Preferences does not store login using JSON
I’m not able to save the login using JSON, it logs in but when I close the application and start again it didn’t save the login. private EditText editTextLogin; private EditText editTextSenha;…
-
1
votes2
answers972
viewsHow to change the data type in $.post request in jQuery?
var envio = $.post("processamento/busca.php", { unidade: $("#unidade").val() }) I have this request, I would like to change the datatype to json, in ajax you have a datatype parameter, but I don’t…
-
1
votes1
answer45
viewsJSON does not complete when sending by Bundle
I’m trying to get the return of a push on android through the Bundle, but I’m having some problem performing bundle.getString("Message"); as it does not take all my reply which is in JSON format,…
-
1
votes2
answers600
views -
1
votes0
answers29
viewsProblems with Autocompletetextview
I’m wearing it for the first time Autocompletetextview with Json back through the google the streets. Everything goes well until the moment I click on the street and get let’s imagine that I click…
-
1
votes1
answer376
viewsHow to convert certain group of columns to JSON?
I have the following problem: I have a table with N columns, however, I would like to turn almost all of them into a single json column, e.g.: id, json(col2,col3,col4) as dados I looked at the…
-
1
votes0
answers988
viewsHow do I put JSON values on a graph in HTML5?
// Classe para chamar o Json. function json(){ var qtd; var retorno; // Resgatar valores. json.prototype.resgatarValores = function(){ $('#resultado').html('Carregando dados...'); // Estrutura de…
-
1
votes1
answer2192
viewsTool to convert Excel to Json
I have an Excell table and I need to generate a chart with Charts.js which uses json to build the database. So how can I convert an excel table with 50 rows and 10 columns into JSON data.
-
1
votes2
answers2436
viewsPass object array via javascript to the controller
How can I pass a javascript object array to the controller? JQUERY var array = []; var $linhas = $("#vendaTabela tbody > tr"); $linhas.each(function () { var x = { id: $(".codigo",this).text(),…
-
1
votes1
answer2355
viewsHow to export data to Mercadolivre? [PHP/JSON]
I downloaded the SDK from Mercadolivre: https://github.com/mercadolibre/php-sdk I just honestly couldn’t find a way to export data there. Both in Gib and in ML itself has tutorials how to read…
-
1
votes1
answer642
viewsHow to display a json return in a listview
I’m trying to return a json that result from a select made in php (web service) to my application. The select is here: mysql_connect('localhost','root','ugauga'); mysql_select_db('noise') or die…
-
1
votes1
answer2475
viewsHow to pass JSON array as parameter and access its objects in another function?
Hello, I’m having trouble accessing objects from a json array that is passed as a parameter between functions of two classes. In the functions that receive the json array, the corresponding…
-
1
votes2
answers753
viewsHow to extract values from fields of a javascript object (JSON)?
I have any Javascript object, ex: var pessoa = {nome: 'Carlos', cpf: '123', rg: '456'}; I need to list the fields that this Object has and the corresponding values. To list the fields I got the…
-
1
votes0
answers291
viewsWeb Pages - Show, impute and search data in an Excel file
I created a page WEB to function as a FAQ in the Sharepoint 2010. But I don’t have much knowledge Sharepoint nor HTML and JavaScript. I am researching to gain more knowledge on the subjects. On my…
-
1
votes0
answers99
views"Outofmemoryerror" error using Volley
I’m making an application where I have a URL that returns a JSON, through the Volley library, I’m taking the content of this URL and turning into string, this process shall be carried out on each 5…
-
1
votes0
answers203
viewsSign in when making web service requests
I created a Web Service that brings results in the format JSON in java, but sometimes when the user makes some request to the Web Service the same hangs and interrupts the whole service, I wonder if…
-
1
votes1
answer214
viewsHow to pass null value via json_encode
How can I pass a php json to jquery with null values. I have the structure below: $data1 = null; $data2 = null; $data3 = null; json_encode(array( 'html'=>$html, 'data1'=>$data1,…
-
1
votes1
answer267
views -
1
votes1
answer30
viewsDoubts in the myjson
I would like to use this code on the site myjson.com but give me the error Error: Your JSON appears to be invalid.. How should I do? [{ "imagem": '<a href="http://bit.ly/1r1QIF4"…
-
1
votes1
answer28
viewsSave geojson value
How is it that by making one geojson I could record numbers instead of string. Example: $geojson = array( 'type' => 'FeatureCollection', 'features' => array() ); while( ($registo =…
-
1
votes1
answer189
viewsCreate input fields according to the size of an array
Good evening, I’m receiving via JSON a List with the structure below: anexo: [{cod: 5, nome: "anexo1.pdf"}, {cod: 6, nome: "texto.txt"}] And I use the function below: $.getJSON(url + cod, function…
-
1
votes1
answer788
viewsArray is not converted to JSON
I treat some functions via PHP and in the end return to the client via AJAX useful information. Such information is contained in a array which is converted to JSON through json_encode(). The problem…
-
1
votes0
answers237
viewshow to read Json in xe8
is not working in xe8 =/, you know why? Json requestresponse1.context: ["1 - Album Linha Inglesa (f) 30x30 (a) 30x60 25 laminas (120 imagens)","1 - Cobertura Religioso, Ensaio e…
-
1
votes1
answer529
viewsInvalid argument supplied for foreach() Using JSON
I’m trying to traverse the foreach with a populated JSON array. To make it easier I’m testing via $_GET (but I’ve tried it with an array populated by php but it didn’t work). The $_GET is like this:…
-
1
votes1
answer32
viewsReferanceerror when running script
The Code below changes the innerHTML of a DIV and when I run the function item.Footer(); the javascript console tells me "Referanceerror 'item is not defined?" (function() {var item ={ Name:…
-
1
votes2
answers1338
viewsMake Ubmit from a form via ajax
I have following code in my controller: [HttpGet] public ActionResult Mensagem(long idT, long idD) { string raaluno = acr.getAlunoLogado().ToString(); ViewBag.idT = idT.ToString(); ViewBag.idD =…
-
1
votes1
answer1978
viewshow to open a json and popular file in a jquery datatable?
I have a gigantic json file and wanted to open it in a datatable jquery I made a script that populates the . json file in a jquery datatable table, but the problem is that it is not populating the…
-
1
votes2
answers603
viewsWebservice returns an Array, and I’m unable to insert it into an Array<Minhaclasse>
{ "cemaden":[ { "codestacao":"520310401A", "latitude":-16.196, "longitude":-52.546, "cidade":"BALIZA", "nome":"Setor Central", "tipo":"Pluviom\u00E9trica", "uf":"GO", "chuva":0.0, "nivel":null,…
-
1
votes2
answers275
viewsSeparate json response for tags
Guys, I have the following ajax call: $(".sec-tags").html(res.data.tags); It is returning the server call, however the call is coming as follows: tags: "coelho,teste,gato" Everything is coming…
-
1
votes1
answer1096
viewsLoad combobox with $.getJSON data
I’m doing a method that goes in the comic book makes a query and returns the codes. With these codes I charge to Combobox with the respective items. There are times that fill in neat, there are…