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
-
4
votes1
answer90
viewsHow can I filter two values in my object array?
Hello! I’m having trouble understanding how I can filter the answer I get from my database, its logic is like this: I receive an array of objects from which it has the values of use, useridRequerent…
-
3
votes1
answer4036
viewsHow to use Elasticsearch next to Mysql?
I’m looking to use Elasticsearch to see if I can get agility and speed in my Mysql queries. I started to see some things, but I found a little confusing the issue of integration with Mysql, someone…
-
3
votes2
answers1588
viewsGrid with auto refresh html + Angularjs
Well I have a grid and it needs to be ALWAYS updated because it contains information that needs to be updated dynamically. This grid is populated with a Rest flame that returns me a json. I need the…
-
3
votes2
answers1288
viewsHow to store checkbox status
I’m developing an application to make a school call list, I created the Listview and populated it with data from a database Mysql, using Json. The problem is this, I need to store the status of…
-
3
votes2
answers1057
viewsHow to format JSON message to read easily
I need to do JSON message DEBUG. I would like one to have available a formatting mechanism similar to the one you have in Eclipse for formatting Java and Javascript code, but via console.
-
3
votes2
answers9442
viewsHow to catch the JSON return via jQuery?
I have a link from Click to Call that returns me a JSON. How to proceed to retrieve the data generated in JSON via jQuery? Link:…
-
3
votes1
answer846
viewsJSON or Sqlite?
I’m developing a simple app on PhoneGap and I will need to have basically 2 tables. One to store the names of the series and another to store the exercises of each specific series. But I’m not sure…
-
3
votes5
answers5334
viewsHow to convert datetime to short date Brazilian model
I have an object JSON that gives me an attribute datetime. However, I would like to display it in an abbreviated Brazilian format. Example 24 JUN 2014. JSON attribute : data { date: "2014-06-16…
-
3
votes4
answers1083
viewsExternal connection JSON Webservice
I have a PHP webservice feeding data from a array via JSON, for reading in an HTML file. When I run the application having the $.get with a local file it works, but when I change the path to read…
-
3
votes1
answer1217
viewsTransfer keys and values from a JSON to PHP variables
How to transfer data from a JSON:…
-
3
votes2
answers217
viewsHow to return the name of an existing object in a JSON
I have the JSON file below: { "uid1":{ "start_time":"20140815", "name":"name 1" }, "uid2":{ "start_time":"20141229", "name":"name 2" }, "uid3":{ "start_time":"20140809", "name":"name 3" }, "uid4":{…
-
3
votes1
answer226
viewsBring JSON result in div with jquery
I have the following JSON generated by the system: var skuJson = { "productId": 17234, "name": "Sabonete AnaSuil Porta Joias Rose Bulgarie", "salesChannel": "1", "available": true, "displayMode":…
-
3
votes3
answers44020
views -
3
votes2
answers5778
viewsHow to send Jsonobject to a Web Service?
I am trying for the first time to consume a Web Service in my Android application by sending data by JSON format. To accomplish the task I have a class to make the connection. public class…
-
3
votes0
answers150
viewsIs it possible to capture an item from a json array to change an attribute from a rect in raphaels.js?
I would like to make an array that can serve as a database for my map represented by these 3 rectangles. The array will contain numbers that will serve as indicators for rectangle colors, If item 1…
-
3
votes2
answers1144
viewsIs JSON equal to an Associative array?
Are the two the same thing? Or is JSON a more complex library or technique?
-
3
votes1
answer155
viewsUpdate data in a module with Angularjs
I am developing an application with angular and I call a webservice that returns me a JSON and I wanted to know how to update this Json from time to time with angular, someone could give me a help?…
-
3
votes3
answers6238
viewsHow to change an item in a json
I have a JSON array like this: [{ id: 1, total: 50.00 }, { id: 2, total: 70.00 }] I would like to know how to add/change an item into a id only. As if in SQL. For example, in case I wanted to change…
-
3
votes2
answers87
viewsHow to extract json from a jsonp in a Scala string
I’m using Scala and I have an http response like this: _SS_MainSolrCallbackH( { response: { numFound: 1, start: 0, maxScore: 4.9338827, docs: [ { tipo: "M", id: "mus1933196",a s: 4.9338827, u:…
-
3
votes1
answer205
viewsAsynchronous server responses for AJAX calls
I have an application that at the end of a page loading I make an AJAX request that takes around 20 seconds. After this request my page keeps working normally so that when I try to make another AJAX…
-
3
votes1
answer141
viewsError 405 when using Httppost on Android
By making a post to the server via Httppost Android get a 405 error. Other applications do the same post successfully, only when part of Android I get this error. Someone knows the reason why? My…
-
3
votes1
answer70
viewsSort decimal notes
I’m ordering a related json into notes in undescore.js {8.0 , 8,5 , 5,5 } var asc = _.sortBy(oper, function(num) { return num.nota; }); Punch the 10.0 he doesn’t throw up.. He gets like this 8.8 6.0…
-
3
votes3
answers3638
viewsjson_decode returns null
I have a JSON file that is at that link. I need to take and display the data in PHP, I have the following code to test: $linkAnapro =…
-
3
votes2
answers3236
viewsHow to overcome Xmlhttprequest cannot load?
This error appears to me. How to overcome it? Xmlhttprequest cannot load "example url". No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not…
-
3
votes2
answers5853
viewsHow to decode a JSON Array on Android
The need to decode a JSON Array thus: output: [ [{ }, { }], [{ }, { }] ] I was doing it in a way that decoded a Array that way: output: [{ }, { }, { }] Code of how I was doing: Method to convert to…
-
3
votes1
answer652
viewsReturn in each getJSON - Jquery
I would like to know the following how do I give Return in a function created by me, in a situation below. Because it always returns Undefined the object, but when I give an alert it returns the…
-
3
votes3
answers462
viewsJSON serialization and deserialization in desktop application
{"result":[[{"code reduced":"019076-3","Stock":200,"Price":900.77,"Price":225.19,"Description":" ASUS AMD RADEON R5 VIDEO CARD 230 1GB DDR3 64BITS R5230-SL-1GD3-L *IMP","Group":"VIDEO…
-
3
votes2
answers1183
viewsDynamic Link? And how to implement?
I don’t know the name of this technique, I’m a student, but sometimes I see in the lower left corner of Chrome the complete link type... http://www.bla.com/.../o-video-game-legal.html Then suddenly…
-
3
votes2
answers2395
viewsAdd <option> to <select> with jQuery via $.post’s callback
I’m making a select that will have some users and when selecting a user will send a request $.post to get all records related to the selected user. After returning the related entries, the jQuery…
-
3
votes1
answer100
viewsGoogle Api - SEO - Google Index and Google plus via json
I need to recover via json or some other way Google SEO information to feed my database.. For now it’s just Google Index and Google+ Does anyone know how to do that? Or someone has some example of…
-
3
votes1
answer569
viewsHow to iterate over a JSON file to appear in the Auto Complete listing?
I’m making an autocomplete, via AJAX, that enters the web service, "Search in the Database" and returns me a String in the format JSON. I have to transform the JSON below in a list to iterate on it.…
-
3
votes2
answers1185
viewsHow to add and search BD products with JSON in HTML dynamic fields?
Personal I cannot get values from performing research with JSON and database after adding new dynamic product line with Javascript. HTML form, the product is searched by code: <form…
-
3
votes1
answer1046
viewsHow to work securely on an Android+API?
I need to develop an API that will receive data from a json user via $_GET with PHP, which will check the data and return a true or false value to the Android application. I am currently using AES…
-
3
votes1
answer92
viewsIndex and automatic values
I have the following Json: {"result":[ [ {"ID_CTE":"1","ABREV":"301CAGSP","MODELO":"CT","NUMLANCTO":" 71","NUMCONHEC":"…
-
3
votes1
answer1072
viewsAPI with Javascript
I would like to know how to make an API in the javascript language to return data as JSON. I need because I want to make a mobile app.
-
3
votes2
answers97
viewsGenerated list with JSON data
I’m having trouble retrieving data from a JSON file within a list in HTML. I put my prototype on Plunker. Script... $.getJSON("list.json", function (json){ //alert("Carregou o list.json"); var…
-
3
votes1
answer1892
viewswrite json file to database
it’s a good idea? was thinking of doing a project where the user will create several elements dynamically (tables, choose a certain option, fill in etc), these elements generated dynamically should…
-
3
votes2
answers150
viewsJavascript + Ajax not returning as expected
I am trying to send the data of this page to the server, but Js does not return the variable Message... Link I know little about JS and would like to know somehow call the variable as soon as the…
-
3
votes1
answer3595
viewsUsing Jquery Datatables with ASP.NET MVC 5
I have doubts how to use Datatables with MVC 5 and with Submit button returning a Json as per the site: Datatables $(document).ready(function() { $('#example').dataTable( { "processing": true,…
-
3
votes1
answer92
viewsBuild javascript modules, how to package files (modules)?
I’m using the require js and want to optimize the requests, reading a bit of the documentation on github, I know it is possible to set up a task in Grunt to concatenate my modules more I’m a little…
-
3
votes1
answer1336
viewsHow to deserialize JSON using Gson with generic list?
I need to deserialize JSON for a generic list, but I’m having an error that I believe is in the conversion: Method call: AtualizarJSON at = (AtualizarJSON) DeserializaConsulta(AtualizarJSON.class,…
-
3
votes1
answer2070
viewsHow to delete text in parentheses with regexp?
I am developing an HTML5 application that uses the Wikipedia API to give the definition of what we ask for. I used the code that they made available in a forum of another language of Stack and, in…
-
3
votes1
answer344
viewsWhat is the correct MIME type?
To allow the exchange of data between the server and the browser, usually several media are adopted, for example when one wants to return a set of data existent in the database using data of type…
-
3
votes3
answers3750
viewsconsuming JSON
I’m having trouble getting a file from the internet by JSON. I have some data on this link http://www.sinestandar.com.br/maker/categorias.txt and I want to take to use in my application, the link…
-
3
votes2
answers763
viewsJquery consuming Web Service Rest
I would like to list the ceps of this json, follows him: [ { "id": 1, "nome": "Hospital Da Mulher", "cep": "60508090" }, { "id": 2, "nome": "Hospital Maria jose", "cep": "2" } ] And that’s where I’m…
-
3
votes1
answer735
viewsJson org.json.Jsonexception error: Unterminated Object at Character
I’m not finding the error at the time I catch this json http://www.sinestandar.com.br/maker/sugeridos.txt look what’s coming out in the log 12-19 13:39:53.589 9554-9564/json.exemplo.com.cortecabelo…
-
3
votes1
answer148
viewsDeezer API - JSON request error with $.getJSON
When trying to perform a simple search on Deezer API (Public Search API without Need for Authentication Key) I get the following error message as return: XMLHttpRequest cannot load…
-
3
votes2
answers576
viewsConvert Json to XML
I have that code: using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Diagnostics; using System.Xml; using Newtonsoft.Json; using System.Net;…
-
3
votes1
answer76
viewsInsert JSON file into Jsfiddle
I am trying to solve a question with a plugin that uses jQuery but do not know how to insert a JSON file in Jsfiddle. This JSON is a string and comes from a file .json.…
-
3
votes1
answer1897
viewsReturn JSON with ASP.NET/C#
I have the following codes Default.aspx <script type="text/javascript"> /* Relógio */ function startTime() { $.ajax({ type: 'POST', url: 'Default.aspx/GetNetworkTime', data: "{}", contentType:…