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
-
2
votes0
answers149
viewsCatch a JSON using Javascript
Django creates a file called py views., in which I have the following function: def carro_view(request,carro_slug=None): evento = Evento.objects.filter(time = '11:28:30').distinct() data = [] for x…
-
2
votes1
answer985
viewsError when converting String to Jsonobject
I am trying to develop an application on android that consumes a Web-Service but whenever I try to run a query in the Database it returns me this error: Error Parsing data org.json.Jsonexception:…
-
2
votes1
answer431
viewsProblem with large size JSON on android
I am receiving a JSON file from a Webservice, this file comes with the approximate size of 5.7M, ai ai quando eu converter seu conteúdo para Jsonarray usando a biblioteca Gson, ele apresenta me o…
-
2
votes1
answer506
viewsjson_encode in html tag
How do I place a json generated by php in a link tag $array = array('a','b','c'); $json = json_encode($array); $link = '<a href.. tag="'.$json.'">'; // tried with JSON_HEX_QUOT | JSON_HEX_TAG…
-
2
votes1
answer882
viewsGoogle Pie Charts is not displayed when data has more than one Row
I am trying to display a Piechart, however, if the search in the database returns only one line, the chart is displayed. If it returns more than one line, the graph does not appear. function…
-
2
votes3
answers1459
viewsParse Complex of JSON
I am trying to parse a JSON, using GSON, but there is a complex part, because I don’t know the name of Keys, so I don’t know what name I should use in the variables for GSON to parse. I researched…
-
2
votes2
answers348
viewsConvert JSON to UTF-8 on Android
I have a JSON Array and when it is displayed in a ListView on Android, appears with special characters: JSON generated by php: [{"id":"1","titulo":"X-Burg","descricao":"Hambúrguer,...","preco":"R$…
-
2
votes1
answer1136
viewsjava.lang.Noclassdeffounderror: org/apache/Commons/httpclient/Httpexception
I’m having a problem using the library httpclient, the exception is happening: Caused by: java.lang.Classnotfoundexception: org.apache.Commons.httpclient.Httpexception I don’t know if I am also…
-
2
votes3
answers1954
viewsoptimize jquery datatable with a database with more than 30,000 records
What is the best way to optimize database data return? the ideal would be to store (on the server-side) all data (select * from data) in an array of objects and send it to the client-side? from…
-
2
votes2
answers1865
viewsUpdate JSON value with Javascript
How can I update the value data.dM without having to rewrite everything..? when I do data.dM = 'lalalaa'; the value is not updated in data var data = [{ "dM": 'lolololo' }]; data.dM = 'lalalaa';…
-
2
votes2
answers2417
viewsAuto Mouse click on a content within a div?
I wonder if it is possible to make a div with auto click. That would be how the page loads and when someone clicks on any part of the page the mouse will click on the content inside the div. in case…
-
2
votes1
answer392
viewsJSON-RPC or RESTFULL?
Between developing an API using JSON-RPC or REST (RESTFULL), I would like to know in which cases there are advantages/disadvantages in using one or the other. OBS: This may be through…
-
2
votes1
answer292
viewsPick values from Contenteditable fields to send in POST
I’m making a Carousel using the Bootstrap. The dados who fed this Carousel will be modified a few times, I decided to create a file dados.json to serve as the basis for these files. I made a classe…
-
2
votes2
answers70
viewsProblems with Json
I have a file with requests in JSON format made to a server and my problem is that I know how to take these requests I mean those lines and handle in php Example of how this File…
-
2
votes2
answers61
viewsTransform into json
I have a string: {name:"Sara", daypart:"day", href:"/questions/ask", bg:"su", temp:"calor", realfeel:"hot", text:"cloudy"} Basically I’m looking for a quick way to turn this into JSON, I mean, quote…
-
2
votes1
answer291
viewsArray conversion with json_encode PHP
Whoa, somebody knows why when I do this: json_encode(array("0" => 0)); Return that: [0] Instead: {"0":0}
-
2
votes2
answers697
viewsSorting objects in a Json without id in Angularjs
How can I sort the display of a Json object array in Angular, ng-repeat? orderBy? and this json has no id to do this ordering, I would like to be able to sort it by sequence of "last added".…
-
2
votes1
answer1501
viewsHow to return all groups I participate in facebook in rss, json, php
Good afternoon, I’m with a doubt I’ve researched everywhere but facebook has changed api, and not this retouching the groups, I wonder if have how to return in some format all links of my groups or…
-
2
votes1
answer856
viewsReceiving Json array in PHP
I have the following code on the application side: function enviaMensagem() { var send = "http://appchat.host56.com/mensagem.php?jsoncallback=?"; $.post( send, {"table": [{"d":1, "p":1, "m":…
-
2
votes1
answer427
viewsJSON return in an array in the LOOP
I need to save the return of JSON in an array, i.e.: $.ajax({ type: "POST", dataType: "json", url: "/engine/listarPublicacoes.php", success: function(data) { for (var i=0;i<data.length;i++){ var…
-
2
votes2
answers977
viewsHow to use JSON response?
After a lot of trying I arrived at this result of JQUERY AJAX, but I still could not use the JSON data, they do not work, how should I do ? give a Help ! thank you The JSON response ta at the end…
-
2
votes1
answer266
viewsPHP client data list in JSON
Good afternoon, you guys, well I have a CRUD in PHP and need to have registered clients shown in another JSON URL But I eat I’m a little weak in PHP I have no idea how to do this with data coming…
-
2
votes2
answers81
viewsDisplay most important information from a JSON file
How do I present only some of the most important information on a list such as the following example? { "userId": 1, "id": 1, "title": "DRF - Delegacia de Roubos e Furtos", "endereco": "Praca Maua,…
-
2
votes1
answer326
viewsJSON generated by json_encode gives error in character "{"
I don’t understand what’s going on, I’m using a function json_encode in PHP and what it returns is invalid?! I am using the jsonlint as validator, and he claims that the error is in the first {. If…
-
2
votes1
answer76
viewsUse Pattern View Model or a POST method with Json?
I wanted a tip from you who are experienced me. I am developing an application where I will use properties of 2 models, which wanted the best option to be used this case and if possible please list…
-
2
votes0
answers19
viewsWebservice asmx does not return JSON, only XML
I wanted to solve this problem, the return of my webservice, returns with the JSON body, but the XML header. how do I return the structure in JSON ? I’ve read all the internet and can’t understand,…
-
2
votes1
answer7608
viewsHow to save a JSON locally?
Direct question: What is the best way to save a JSON file locally and how to do it? Details: I have a web application that receives user data using the Facebook API (Javascript SDK), I need to save…
-
2
votes1
answer2115
viewsReturn Json with related data - Laravel
I am creating a REST API but I stumbled upon this issue in which I cannot imagine a solution. In my database I have 2 tables; Table 1 - General product data such as name, code, sku and description…
-
2
votes1
answer51
viewsError recover json on php side
Well, I’m sending a json to php but I can’t recover $.ajax({ type: "POST", url: "sys/salvar_servidor", datType: 'json', data: JSON.stringify(dados), success: function( data ){ document.write(data);…
-
2
votes2
answers1964
viewsConsume Json Data - Webservice Swift 2 - iOS
I need Query price in the search api (returns in json) in my app with Swift 2. Could someone help me do this or indicate a tutorial on how to do ? How you use the search api : Using the Search API…
-
2
votes2
answers347
viewsSending Text from an Enum display by Json
Guys, I’ve got an Enum for days of the week, being: Segunda = 2, [Display(Name="Terça")] Terca = 3, Quarta = 4, Quinta = 5, Sexta = 6, [Display(Name = "Sábado")] Sabado = 7 So I build an object that…
-
2
votes1
answer679
viewsMysql Date for Highcharts
Good I have been here a few days back from this subject until I got something, my only problem now and convert my chart which I was reading through a CSV to now read directly from MYSQL My original…
-
2
votes2
answers310
viewsJson Array for C#string array
I just need to get the names of the moderators and viewers of this json: { "_links": {}, "chatter_count": 16, "chatters": { "moderators": ["gumagames", "juliavidoto", "nightbot", "pinkpanthersz_",…
-
2
votes2
answers334
viewsError reading dynamically generated JSON with file_get_contents
I have this code that generates me a json file header("Content-Type: application/json; charset=utf-8;"); $codigo = $_GET['cod']; //variável para parametro que será passado ao servidor via URL $sql1…
-
2
votes2
answers1331
viewsHTTPS server consults postal zip code
I am trying to order the address by zip code on a website, but is giving the following error: Mixed Content: The page at 'https://meusite.com.br' was Loaded over HTTPS, but requested an insecure…
-
2
votes1
answer180
viewsHow to choose which field to serialize - Jackson
I’m using Jackson to convert my objects into Json. The fields I don’t want to serialize milestone with the @Jsonignore annotation, but in some cases I wish I could serialize these fields. Is there…
-
2
votes0
answers428
viewsAPI for obtaining quote data
I wanted to know if there is an API that provides data (json or XML) of dollar and euro quotes. And there is also one that provides the indicators of the values and rates of variation of…
-
2
votes1
answer467
viewsHow to separate a string into several in java?
My problem is basically the following, I have a JSON code that takes the data from a URL, and returns it to me (The values are in Long) 528593 444218 5693595 2466912 2466435 However, it returns this…
-
2
votes1
answer1048
viewsPass an input value to an object array
I’m trying to pass on the value of one input text for an array of objects, via jQuery but not understood how to insert it in array. I tried to wear something like: var usuario =…
-
2
votes1
answer542
viewsHow to send an array to a variable with Json
<!DOCTYPE html > <html> <head> <link rel="stylesheet" href="demos.css" type="text/css" media="screen" /> <script…
-
2
votes2
answers138
viewsRemote reading on Android: Json or XML?
I’m starting on Android and also don’t have much experience in Java. My first application will have a query to a remote server. My question is this:: In Android (consequently in Java) what is more…
-
2
votes1
answer135
viewsAjax + Codeigniter
Good morning.... I just implemented Codeigniter, but I can’t use user friendly url... I try to pass parameters through Ajax, but I cannot due to URLS. I’ve already removed the index.php of the…
-
2
votes1
answer5879
viewsReceive JSON data with Curl
I’m sending a Curl to a URL that will return a JSON as a response. By the browser, accompanying with firebug, the return is in JSON, but when I do the same procedure by PHP, it returns a page (which…
-
2
votes2
answers425
viewsHow do I get a json answer in javascript/jquery?
I have the link: https://dominio.com/apiJSON.php?data={"login":"[email protected]","senha":"Minhasenha","campanha":"ID 1234","mensagens":{"1":{"numero":2799999999,"msg":"Uma mensagem…
-
2
votes2
answers3681
viewsHow do I get JSON from a URL to use in my PHP file?
I want to get the value of the JSON dollar displayed in this URL: http://api.promasters.net.br/cotacao/v1/valores?moedas=USD&alt=json to use in my php file, you can only do this with PHP? Also…
-
2
votes2
answers89
viewsProblems printing a JSON table
I can’t print the table, what’s wrong with my code? var json = [ { "tempoNS":104095548, "tempoMS":104, "tamanhoArray":9000, "nome":"Bubble iterativo" }, { "tempoNS":84671736, "tempoMS":84,…
-
2
votes1
answer690
viewshow to get javascript console request url
Guys I need to get the url of a get from the console I want to know this because I have an iframe that I need to get the url from it so that in the url there is a random variable that keeps changing…
-
2
votes1
answer574
viewsReceive and Send JSON C#
In a local application "Windowsform" in C#, I need to send and receive data via JSON to a PHP page, there is some predefined function for this ?
-
2
votes1
answer255
viewsHow to print information that is in json format but is printed in a way that allows the user to read?
The application is printing in this json format but I don’t want it to print like this. For example I just want you to print "Translation": "Hi dear" and only. I am using eclipse and the java server…
-
2
votes2
answers1817
viewsPlace Json value on variable
What I’m doing wrong? var GETEstado = $(this).val(json[0].GETEstado); alert (GETEstado); The Alert is exhibiting [Object Object] My complete code: $(document).ready(function () {…