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
answer74
viewsRead json output in Php
How do I read this output? curl http://127.0.0.1:8775/scan/3730f9794bffb6aa /log { "log": [ { "message": "testing connection to the target URL", "level": "INFO", "time": "10:24:05" }, { "message":…
-
1
votes0
answers54
viewsJson returning wrong data - Android
I have an Activity that displays the data of a json coming from a url. The data is displayed, but I need to change the content of this json from time to time (the url does not change). The problem…
-
1
votes1
answer763
viewsJSON doesn’t convert special character?
I have a ArrayList and when will I convert him to a Json using the Gson special characters do not accompany serialization. Obs My bank and project is in encoding utf8. I am Serializing the ArrayList…
-
1
votes0
answers775
viewsUpload Mysql Google Chart data
Can someone help me? I can’t load the Mysql data in Google Chart...if I use this same code, but in the graphic "Pie", it works, but in line it doesn’t... it draws the chart but not with data...…
-
1
votes1
answer231
viewsHow can I convert datetime to data string?
Follows the code: var fullEntries = dbContext.tbl_EntryPoint .Join( dbContext.tbl_Title, combinedEntry => combinedEntry.entry.TID, title => title.TID, (combinedEntry, title) => new { UID =…
-
1
votes0
answers71
viewsWhen my return Json is an array how can I get this array?
try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection) urlConection.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("POST"); /* DataOutputStream pt = new…
-
1
votes1
answer213
viewsPopular inputs with jquery and insert table rows at the same time
I have an input that when inserted the matricula (identification) of a person, the rest of the table populates dynamically, and is automatically inserted another row of the table, which would work…
-
1
votes2
answers2037
viewsPass an array of objects via AJAX via POST and read the properties of objects in PHP
I’m having some problems solving this situation. I’m trying to pass my object array via AJAX to another PHP page and read the properties that are inside each object within that array. For you to try…
-
1
votes0
answers391
viewsREST API for CSV to JSON conversion
Good morning guys, I’m facing a problem currently, I need an API that can converge CSV to JSON via REST. I have located several CSV to JSON converters on the web, but they are built for use in the…
-
1
votes0
answers36
viewsNewtonsoft.Json 'Jarray.Cs' does not exist
Using VB.NET and Newtonsoft.Json usually... from time to time presented the following error: Locating source for 'C: Development Releases Json Working Newtonsoft.Json Working-Signed Src…
-
1
votes2
answers406
viewsReturn with json array showing only first record
<?php //database configuration $dbHost = '127.0.0.1'; $dbUsername = 'root'; $dbPassword = ''; $dbName = 'master'; //connect with the database $Mysqli = new…
-
1
votes1
answer2193
viewsJson with Array within PHP array
I run into a problem. I have an API in URL passing { "id": "1", "codeReferenceAdditional": "33B", "isActive": true, "personType": 1, "profileType": 3, "accessProfile": "Administradores",…
-
1
votes2
answers544
viewsSend an array of objects in an ng-click?
I have the following doubt in this code. <table class="table table-bordered table-hover"> <thead> <tr class="bg-info table-responsive table-bordered table-striped">…
-
1
votes1
answer211
viewsFormat JSON - PHP and Mysql?
I need to ride a json as follows: [ {"SUPERMECADO 1": {"telefones": [ "1999999999","1999999991"]} }, {"SUPERMECADO 2": {"telefones": [ "1999999992","1999999993"]} } ] But currently my SQL is…
-
1
votes1
answer1932
viewsHow to add an object in an array within another object
I have the following function that creates an object: function createDebit(name, value, paymentDate){ var debit = {"type": name,"value": value,"PaymentDate": paymentDate}; return debit; } This…
-
1
votes3
answers292
viewsHow to use a two-dimensional array with Javascript (jquery)?
I believe my question has become too superficial, but I explain the situation in more detail: I already have the code and it works partially follows; $(document).ready(function() { var url =…
-
1
votes0
answers271
viewsLoading large JSON file
Staff I have equipment here that provides a log on JSON which is inserts the data each 2 seconds,It provides this log for reading, the problem is that this file has log 30 days, I am using ajax to…
-
1
votes2
answers1541
viewshow to filter a json object?
I have the following json object: var json = { "acao": "listaHoteis", "hoteisPesquisa": [ { "home_id": "1", "nome": "Itamarati" "preco": "925" }, { "home_id": "2", "nome": "copacabana" "preco":…
-
1
votes1
answer276
viewsHow to filter a json object with jQuery?
I have the following json object: var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }, "quarto":[ { "quartoUh":[…
-
1
votes1
answer1246
viewsError consuming json using ajax
I have the following return in json: { "ConsultarRegistroPorCodigoResult": { "Codigo": 2, "CodigoSetor": 1, "Login": "ednilson1", "Nome": "Ednilson", "RegistroAtivo": true, "Senha": "123456",…
-
1
votes1
answer177
viewsHelp with Javascript filter
I have the following Javascript code: JSON var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }, "quarto":[ {…
-
1
votes2
answers984
viewsHow to update data from a table only if the new values are different from the current ones?
How can I do an UPDATE only if the data sent is different from the data stored? I’m with the following: <?php header('Content-type: application/json'); header('Access-Control-Allow-Origin: *');…
-
1
votes1
answer450
viewsSlider Range of jQuery
Hey, how you doing? I have a code that filters the data of a JSON with jQuey, I can filter with pre-defined values in a variable. But I wanted to use the values of a jquery ui slide range to filter…
-
1
votes2
answers994
viewsPHP does not receive POST Json
I’m trying to create a sending function via Ajax with pure Javascript, but PHP does not receive the data. Javascript is sending data correctly. Javascript code: this._data = JSON.stringify(data);…
-
1
votes1
answer570
viewsForeach in JSON file
I have a comeback JSON, but I’m not getting a foreach (PHP) in it, keeps giving this error: Invalid argument supplied for foreach() Follows below the JSON: { "categorias": { "categoria": [ { "id":…
-
1
votes1
answer509
viewsGet JSON return without "result" in Ajax or return without "result" in Delphi
I am generating a JSON in Delphi with mORMot and I need to pick it up on a page to generate some graphics with Google Chart, however the Delphi return me the JSON within a result. I just mount the…
-
1
votes1
answer548
viewsForeach with this type of JSON (PHP)
I am trying to display the values of a JSON with PHP more unsuccessfully. Code Used: JSON: { "event_name": "offline_message", "widget_id": "sEcXk3TXEw", "visitor": { "name": "ARTULITO BARBOSA DE…
-
1
votes1
answer638
viewsRead JSON return from PHP Curl
Just read a certain Curl return value. By giving the $arrData =json_decode($var); where $var is the return of curl_exec Obtenho: stdClass Object ( [id] => PAY-A8XUTU4VSTE6 [status] => WAITING…
-
1
votes2
answers98
viewsWhy doesn’t $.post() return an object?
I have a function more or less like this: $('#btn-load-more').click(function(){ var key = $('#hash').val(), limit = 0, i = 0; setTimeout(function(){ $.post('api', {type: 1, limit: limit, key:…
-
1
votes1
answer78
viewsLogical help with PHP using Twitter API
Well, here’s the idea, I’m using API from Twitter to authenticate users, I am using the following feature: https://twitteroauth.com. I used this video to help me authenticate, it’s exactly the same:…
-
1
votes0
answers727
viewsSearching for data in the Tmdb API
I have a website about movies made in PHP (codeigniter), I intend to use the site API themoviedb.org to search and show the information to users. And the first time I use an API and would like to…
-
1
votes0
answers97
viewsJson deserialization with Datacontractjsonserializer Null Pointer Exception
At first I’m doing a test if I can communicate properly with the Wikipedia API. My first goal is to take data from the API, turn it into an object and present something on the screen that…
-
1
votes0
answers387
viewsError: $http:baddata Bad JSON Data
I am finishing developing a web application but I have a problem. All my application was developed in Python, Restful, Angularjs and Chartjs. I am importing information from the database via python…
-
1
votes4
answers1960
viewsBack position in data JSON format or list with Python
I am working with data similar to the structure below: {"Id":1, "Data_inscricao":"2017-01-01", "Texto":"Loremipsum", "Numeracao":26, "Tempo":"25s"}, {"Id":3, "Data_inscricao":"2010-05-02",…
-
1
votes2
answers104
viewsjson_decode($data) PHP
I’m using the json_decode on top of a Geojson file. All I need is to print on the screen a Feature specific to the file, which has the following structure: var GEOJSON = { "type":…
-
1
votes0
answers187
viewsPagination with GSON (ANDROID)
Staff need to load when arriving at the end of the list, example I have 20 items, when arriving at the end of it, need to be loaded 20 more. Currently my Fragment loading the ads is as follows…
-
1
votes2
answers1841
viewsHow to send java post information to a php page?
I’m facing a problem that I don’t know how to solve right now. To put it bluntly, I’m having trouble sending data in json to a php page through a java application. Basically, I have a php page that…
-
1
votes3
answers477
viewsJson filter help with jQuery
I need help with the Json filter with jQuery, I have this code: var chamaFiltro = function(horaminida){ var pesquisa = { idamin: horasParaMinutos(horaminida) }; var filtrados =…
-
1
votes2
answers401
viewsProblem with json slim framework
I am making an api to do the integration of two different systems, the system sends me the following json: cJson = [{"TESTE": "1"}] I spent 3 days with a problem because I was not able to catch the…
-
1
votes3
answers314
viewsJquery function does not find the Controller when I go up to the server
During development the function below finds the Control and makes the request correctly, but after publishing on the server the function no longer finds the Controller: During the development I have…
-
1
votes1
answer406
viewsLong running period web service
I am creating a webservice that makes consult in a DW these queries for having functions of aggregations and everything else take a little more time than normal (something around 2 - 5 minutes),…
-
1
votes2
answers2539
viewsconvert JSON to object
I have the following json [ {"name":"razao_social","value":"INTELIDER"}, {"name":"nome_fantasia","value":"INTELIDER LTDA"}, {"name":"cpf_cnpj","value":"10.999.558/0001-86"},…
-
1
votes1
answer128
viewsScript does not continue and hangs
I have the following code made with javascript: <script type="text/javascript"> $(function() { $("#loginForm").on("submit", function(a) { a.preventDefault(), $("#signinButton").attr("value",…
-
1
votes2
answers1196
viewsConsuming Json[Array & Object] on Android
According to the comments from some users of this forum, I read some articles talking about more or less what I wanted to do. Read article: consuming JSON From of this I I tried to create my own…
-
1
votes1
answer78
viewsProblem with window.Location
I’m having trouble with window.location = "index.php", he is not redirecting the page login.php for index.php, see the code: <script type="text/javascript"> $(function() {…
-
1
votes2
answers574
viewsHow to consume JSON files in PHP in different ways?
This topic differs from subjects such as: "How to consume JSON in PHP"; "Extract json value in php"; "Read string json on php" or "Recover JSON in PHP" Although there is co-relation on various…
-
1
votes1
answer128
viewsDesktop and cloud system integration
I have a desktop system where I need to send some data to the service Firebase of Google. I would like an idea of what would be the best way to send this data to the Firebase, and it can sometimes…
-
1
votes0
answers660
views -
1
votes0
answers180
viewsJSON loads on localhost but not in production
I’m developing a website project that uses JSON files to feed dynamic data. In localhost, using XAMPP, the data is loaded but when I go up to a production server the page does not read the JSON…
-
1
votes0
answers237
viewsJson in unquoted format
Hello, I am consuming data from a webservice where I Gero a json by PHP json_encode. require_once('../lib/nusoap.php'); $client = new nusoap_client('http://dominio.com.br/webservice/ws?wsdl', true);…