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
votes2
answers150
viewsFormatting JSON in cakephp
I’m generating a json from a find in Cakephp. Controller: public function listar() { $this->layout = 'ajax'; $this->set('resultados', $this->Sala->listarSala()); } Model: public function…
-
1
votes1
answer116
viewsjquery sorts my date automatically
I send a json to any url, like this one: {"130":"chocolate","129":"banana","120":"chiclete"} Then I’ll get $. $.get(url,function(data){ console.debug(data); },'json'); result ( it sorts…
-
1
votes2
answers1996
viewsQuery PHP data using the $.get json method and list data in an html
I can do data entry but have no idea how to do data selection on a HTML using $.get JSON. Php code public function Inserir($tabela,$sql){ ksort($sql); $Campos_nome= implode('`, `',…
-
1
votes1
answer144
viewsResponsiveslides with JSON as Datasource
After much search for a very simple image gallery I ended up finding the Responsiveslides.js which is not only quite simple, but also works satisfactorily in smartphones (even if the latter does not…
-
1
votes0
answers123
views -
1
votes0
answers166
viewsHow to return a list of Google Contacts?
I’m developing a view to show the latest emails, recent drive items and etc using Google Apis : http://developers.google.com/apis-explorer/#p/ But here there is nothing that returns the contacts.…
-
1
votes1
answer43
viewsJson with problem, does not continue execution after request
Code of the contorller public JsonResult InsertComment(string description, int postID) { try { Comment comment = new Comment { Content = description, DataCommented = DateTime.Now, PostID = postID,…
-
1
votes1
answer967
viewsPrint json return text in the middle of code - Jquery/Javascript/JSON
I have a chart that is created according to the year, which is passed by AJAX and returns a JSON containing the values to create the chart. Well, I send the AJAX with the year, return the JSON,…
-
1
votes1
answer606
viewsSelecting data in Java Curl
I would like to know how to select data using gson library. BufferedReader reader = null; URL endereco = new…
-
1
votes1
answer1150
viewsReturn data from Java to Ajax using Json
I have a Java application, and a module that inserts products into the base using REST. At the base the product id is autoincremental, and as soon as I add the same at the base, I need the id for…
-
1
votes1
answer105
viewsERROR: using Getjson knockout
FILE . ASPX <head> <script src="scripts/jquery-1.4.4.js"></script> <script src="scripts/knockout-3.1.0.js"></script> <script…
-
1
votes3
answers780
viewsJSON data capture with PHP
I have the following JSON file: { "version": "1.0", "encoding": "UTF-8", "entry": { "xmlns": "http://www.w3.org/2005/Atom", "xmlns$gd": "http://schemas.google.com/g/2005", "xmlns$yt":…
-
1
votes3
answers342
viewsJSON integration with Swift
I wanted to know how I pass a JSON with my URL to Swift. I have one as an example: http://peps.com.br/pips/teste2.json and if someone can do the start of my JSON in the Swift language would already…
-
1
votes2
answers180
viewsHow to produce JSON in the format that Flot expects?
Doubt on how to serialize to return this JSON. I’m using the Flot library (http://www.flotcharts.org/) to display a chart. I can generate the charts. In my view I’m wearing it like this : $.ajax({…
-
1
votes1
answer122
viewsVariables in a JSON
Is there any way to vary the value of a JSON? Let’s look at an example: I have the following JSON { "ISteamClient": 0, "ISteamFriends": 0, "ISteamUser": 0, "IEconItems_440": 0, "IEconItems_730": 0,…
-
1
votes1
answer1289
viewsHow to read and write JSON locally in Cordova?
I need a simple solution to persistently upload and update data in a mobile APP using Cordova. I thought I’d create a JSON in the application root folder to load the data on APP startup. Even for…
-
1
votes2
answers3199
viewsAfter selection with Select2, how to automatically fill in form fields?
I am creating a form that has a field that the user will enter the company name and Select2 will perform a search in the BD and return the company name to the field, example in the image below:…
-
1
votes3
answers10174
viewsHow to Add and remove items from a json easily?
I have a json similar to this [{id: 1, titulo: 'compra', valor: 50.00, data:'2014-10-23' },{id: 1, titulo: 'compra', valor: 60.00, data:'2014-10-24' } ] I have a function to add, which adds a new…
-
1
votes1
answer340
viewsWeb Service returning invalid value
Good people, recently I asked a question with the title: Application displaying this error: Error Parsing data org.json.Jsonexception But by researching I came to a different conclusion in which I…
-
1
votes2
answers92
viewsJavascript Xmlhttprequest Scope Function
function getMensages(){ var xhr = new XMLHttpRequest(); xhr.open('GET', '../mensagens.php'); xhr.send(); xhr.onload=function(){ if (xhr.readyState==4 && xhr.status==200){ jsonText =…
-
1
votes2
answers75
viewsRescue only the Multipart response body
I am trying to download a JSON file, it is sent to me via Multipart, I can recover it but I don’t want to save it in a physical file, so I am taking the return and converting it into string. My…
-
1
votes1
answer470
viewsHow to redeem a key in a Json using Gson (Google)
good night. For the first time I am manipulating a Json file with Java, because many colleagues have always told me that it is very easy to manipulate data, especially with the Google library…
-
1
votes1
answer545
viewsHow to upload multiple images to SQL Server using JSON in ASP.Net MVC?
I need to insert a set of information into the SQL Server database data, but along with them some pictures along with some strings. I’m wanting to move everything by JSON. Input to select image:…
-
1
votes2
answers317
viewsPersist JSON Postgres / Golang
Hello, is there any way to persist a JSON in postgres with the GO language? I don’t want to do a manual Insert, I want to map my JSON with a struct and persist, similar to Hibernate in Java. found…
-
1
votes1
answer1573
viewsWhat is the best way to make an HTTP request on Android?
I’m using DefaultHttpClient to make json requests for a Webservice, but this function is obsolete, which is the best alternative for creating a Webservice client?
-
1
votes0
answers59
viewsError 500 when loading page
There is a client who sells real estate and the real estate data is taken from an external json link. The system is working, but the system takes time because it is TOO much data. It spends about 1…
-
1
votes1
answer757
viewsHow to access Json object property?
I am receiving via Ajax a Json object, and would like to turn it into a C# object and access its properties. How can I do that? I ended up reversing the name of the variables (objeto, itens), the…
-
1
votes1
answer142
viewsFill in Select with optiongroup
I intend to create a multiple select like that What I managed to do was this What I want is to group all the records of the same group, as this organized in the plugin See the code here My json…
-
1
votes1
answer827
viewsWhen converting an object to JSON, because it appears several characters " "
To perform the Bean to JSON conversion, vice and versa, I am using the library org.json for JAVA. But although an object is converted normally, others end up being loaded with characters \, when…
-
1
votes4
answers685
viewsError in JSON PHP return to AJAX
I cannot return the Success, it is always falling into error. The server-side part appears to be ok, the email is sent correctly, I just can’t display the Success and I don’t understand why. PHP…
-
1
votes2
answers40
views -
1
votes1
answer194
viewsIs it possible to make a basic CRUD in JSON file?
I have the following scenario. I have a news site on ASP.NET MVC that currently when accessing it, all information is taken from the bank. I want to take these requests from Front. I thought I’d…
-
1
votes1
answer3970
viewsPopular table with PHP and JSON
I am developing a system that has a client table, this table was not developed by me, so I am having some problems to popular. Visually the table works perfectly, but when I try to popular with…
-
1
votes0
answers47
viewsSend json from iphone to a Bluetooth device
I need to create an app that sends a json information (login and password) to a bluetooth device, which will query in a database and see if the login and password are correct. I have this app for…
-
1
votes1
answer162
viewsHow to deserialize a geometric polygon with Gson?
I am using Vraptor 4 and the intention is to create a converting class of Polygon that does the deserialization and serializes. My problem is only in deserialize. How to deserialize a geometric…
-
1
votes1
answer435
viewsHow to create settings via json in codeigniter
How to use a json configuration file, so that the values of the file parameters become $config['var'] style configuration variables in codeigniter?
-
1
votes1
answer416
viewsCreate a dynamic checkbox value (value) using ajax
I have an ajax code http://jsfiddle.net/rubensoul/dcb14q79/ and I need the values that appear to be dynamic, example: In the link I put has 3 inputs and in js I created for only 1, if I put for…
-
1
votes3
answers688
viewsHide JSON element using javascript
I have the following result in JSON: { "name": "test", "count": 5, "frequency": "Manual Crawl", "version": 1, "newdata": true, "lastrunstatus": "success", "thisversionstatus": "success",…
-
1
votes1
answer597
viewsError 415 when doing json post
I have a CRUD REST application that responded in XML, however, I want to change it and make it respond JSON. I can do GET in restclient, but POST, PUT and DELETE does not, it gives the Unsupported…
-
1
votes2
answers8131
viewsDisplay content from a JSON using PHP and separate fields
I have the URL of an API that generates a JSON. I have this code below, however I need separate fields for me to be able to create while of the items and to separate type echo $row['nome_marca'] and…
-
1
votes2
answers272
viewsHow to perform asynchronous request using JSON?
Scenario, I have a data request using JSON but I would like this request to be performed outside the main thread of the app, so that it does not catch and that the user can perform other operations…
-
1
votes2
answers4984
viewsHow to insert taken data from a JSON file and put into a list with Angularjs
app js. (function(){ var myApp = angular.module('loja', []); myApp.controller('CarrinhoController', ['$scope','$http', function($scope, $http){ $scope.title = 'Lista de Produtos';…
-
1
votes1
answer585
viewsCopy the contents of a Json via PHP and send to the server
It is possible via PHP copy Json content from a page (an API that generates a json dynamic) like this http://www.folhacar.com.br/frontendnovo.php/api/listMarcas and save to a directory within my…
-
1
votes2
answers119
viewsHow to send data to web service using Afnetworking?
I have a form that must be filled in the application and sent to the web service to register a new user. How could I send this data to the web service using Afnetworking 2.0? I tried to use the code…
-
1
votes1
answer183
viewsSearch for posts on Facebook by Hashtag in JSON format
How to bring public facebook posts by certain hashtag, for example #Olamundo. I need posts to come in JSON format.
-
1
votes1
answer835
viewsError in reading JSON
I am trying to read the Jsons from a folder and get the proper values, I have tested all the Jsons to see if they were valid. The folder with the Jsons is called 'test' for dirname, dirnames,…
-
1
votes3
answers3091
viewsWhy doesn’t getJson work?
My file select-menu.json is like this: { value: "1", descricao: "1" }, { value: "2", descricao: "2" }, { value: "3", descricao: "3" }; And I’m trying to get it that way:…
-
1
votes2
answers805
viewsIs it correct to use JSON to store data that does not need to be in a database?
Ex: In the company where I work they have put in my code a large amount of data that does not need to be in the database, but is not text or actual content. They are a lot of validations and…
-
1
votes1
answer164
viewsDoubt with JSON in Jquery Autocomplete
I have the following return JSON {"cliente":[ {"id":"1","nome":"Fulano"}, {"id":"2","nome":"Ciclado"} ]} And I need popular man autocomplete, $('#nome').autocomplete({ source: function(request,…
-
1
votes1
answer69
viewsSyntax created dynamically
I have a syntax (in php) to generate the Json file. Only that I need this syntax to be created dynamically, that is, according to the result of another class. It’s like this: Given the values of a…