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
-
0
votes2
answers1135
viewsCheck if pattern is followed, JSON and PHP
There is a small request pattern with multiple parameters, but I’ll simplify it this way: $parametrosdBase = array('nome' => false, 'codigo' => 83474, etc.. I get a string in JSON format that…
-
0
votes1
answer69
viewsHow to take values from a JSON and pass as SASS variables with Grunt
I need to compile templates using Grunt and I want to put the color settings inside a JSON file that will be inside each layout folder, that is, I need to use Grunt to read JSON and pass the values…
-
0
votes0
answers56
viewsStream JSON between devices with Wifi Direct
I need to transmit data between devices via JSON and store the data on Sqlite. That is, there will be a device responsible for receiving the data and at the end will send a "OK" message to the…
-
0
votes0
answers176
viewsview list of returned items in json format with php and mysql
I am developing a website for a real estate, at the moment I am listing the properties and paging the result with sql queries, are listed more than 2000 properties and there is a significant delay…
-
0
votes1
answer251
viewsHandling JSON with Asp.net Web API
Hello, I’m setting up an educational application where I have a course schedule. In this project I am using a jquery calendar, and this one uses a json to assemble the dates that has scheduled…
-
0
votes2
answers133
viewsSelect multiple lines with PHP JSON
I’m using SELECT to collect multiple lines from my database. Using the query format below I have the expected result. while ($this->result = $this->pQuery->fetch(PDO::FETCH_ASSOC)) {…
-
0
votes1
answer527
viewsjQuery multiple word autocomplete
Using the following javascript code $.getJSON("../JSON/TAGS.json", function(tags) { var tagsArray = []; for(var i=0; i<tags.length; i++){ tagsArray.push(tags[i].tag); } function split( val ) {…
-
0
votes0
answers141
viewsPrint table data using JSON
Good morning to you all! Guys, I am in the following difficulty: In my web system I have a table, where I will print it on a printer not tax ending. It is working perfectly in Computers and…
-
0
votes4
answers352
viewsError inserting json in Mysql with PHP
I have a code PHP which causes an array to become jSON <?php $imagens = array('imagem1.jpg', 'imagem2.jpg', 'imagem3.jpg'); $json = json_encode($imagens); $inserir = mysql_query("INSERT INTO…
-
0
votes1
answer154
viewsFilter json city returned from google Places
I need an example to understand how I can navigate a jsonArray. This is the example I’m using…
-
0
votes1
answer75
viewsSQL Server and JSON to generate Highmaps: query very long and difficult to handle
I built the query below to have a JSON output for Highmaps (Highcharts), but it is very laborious and I would like to modify, if possible so that it is smaller and easier to change it: select…
-
0
votes1
answer433
viewsHow do I update my Android JSON Parsing using Volley
I’m having a problem, I’m new in development for android, I’m having a question. My app is searching for a file. json on my computer, only when I change a word and open my emulator with the app it…
-
0
votes1
answer170
viewsAdd information to a. json file
You can add information with a different reference to a json file with php? Type: file json. { 'id': 'rt6hj7'{ 'nome':'Miguel' }, 'id': 'rt10hg9'{ 'nome':'Sagas' } } And add Jose with id: 8dhus8763…
-
0
votes2
answers253
viewsQPX Express API - Flight list
I’m trying to use the QPX Express API to search for flight lists, the documentation has how to pass the arguments, but I do not know how to use, for example: Documentation: The simplest way to Try…
-
0
votes1
answer50
viewsHow do I get a JSON and store in a list?
I would like to receive a JSON that contains several messages and stores it in a list that contains one JSON content per position The JSON format would be this: [{"id":"42","data":"02\/12\/2015…
-
0
votes0
answers77
viewsRecover json through a url using ajax
I have this method that searches the data that is in a txt file and populates a table: $(document).ready(function () { $('#example').DataTable({ "ajax": "objects.txt", "columns": [ { "data": "name"…
-
0
votes0
answers646
viewsField Completion with ZIP in Cakephp 2.x
I’m trying to auto-fill the fields in Cakephp from a zip code, I’m adapting the code found on this site: http://matheuspiscioneri.com.br/blog/preenchimento-automatico-do-endereco-a-partir-do-cep/ I…
-
0
votes1
answer110
viewsDropdown Asp.net MVC
I would like to do two dropdown in a view, I don’t want to dropdown through the model in the view because each dropdown is a different class. I made the dropdowns with angular.js only that I failed…
-
0
votes1
answer251
viewsHow to load a Recycleview with a list?
I have a List loaded with a JSON of a query with multiple records and multiple columns: List<Videos> lstVideos = new ArrayList<Videos>(); So far so good. What I need is to carry one…
-
0
votes1
answer104
viewsHow to parse a Json with 2 columns in Objective-C?
In a Get using PHP I am making the request of 2 columns this way: <?php include 'conexao.php'; header('Content-Type: text/html; charset=UTF-8'); //Converte para UTF8 os resultados da query…
-
0
votes1
answer69
viewsManipulation of JSON
I have the following code: $Json = array(); foreach ($Dados as $ln){ $Json[label] = $ln['NOME']; $Json[value] = $ln['EMAIL']; } echo json_encode($Json); With this I have the following return:…
-
0
votes1
answer81
viewsI get no data from the URL
I’m working on a project where I have to make an app that will fetch information from the database via Json. I’ve done dozens of tutorials and I always end up not being able to receive a reply from…
-
0
votes1
answer33
viewsGenerate JSON data page in Jekyll
I wonder if there is any way to generate a page with data on JSON (false data) in the Jekyll. The intention is to simulate a request AJAX for that page already preparing the code for when the data…
-
0
votes0
answers528
viewsConsume webservice C# amsx on android Volley
I created a webservice in c# that returns me a string in the JSON pattern, I’m trying to consume this webservice with Volley but the same returns me null, depending on the variation of the url it…
-
0
votes0
answers44
viewshow to use sharedpreferences
Good afternoon can anyone give me an example of how to create sharedpreferences... I’m in a bad situation where .. i validated the user and password on the server using php via webservice and after…
-
0
votes2
answers731
viewsExtract JSON array data on Android received by Datasnap
Good afternoon. I would like to know how I can extract the data received by the server using Datasnap from Delphi. I’m doing it this way, but it’s returning an error: lista_versoes =…
-
0
votes2
answers229
viewsGet elapsed time from a string
I wanted to calculate the time now with what I get from a string like this: 2016-04-16T15:55:53Z But the time is three hours longer than our time zone, wanted some kind of exit: Já se decorreu 0…
-
0
votes2
answers10008
viewsAdd a value to a JSON object
How could I add a value chain to an object JSON? For example: var a = 12; var b = 3; var obj = { c: 11, d:22 } console.log(obj); How could I apply to and b, within my variable obj to become part of…
-
0
votes1
answer583
viewsDynamically load contents via <select> tag
I have a question, and I wish you could help me. My case is the following I have a dynamic where according to the selected option it returns a JSON with information from Hotel Units. What I need is…
-
0
votes3
answers4171
viewsHow to transform data into array with JSON?
I have to get the data that are being accumulated in the variable valore and turn them into an array so you can catch them using HttpRequest in an HTML page. How do I do this? // Classe para chamar…
-
0
votes0
answers98
viewsRequest item is not returning in ajax Function
I have a problem in my application in which I have not the least idea how to solve, let alone the reason for the problem It turns out that an index is not specifically returning in my request within…
-
0
votes1
answer108
viewsWhat’s wrong with my Ajax?
My code has no return and I can’t figure out why. index php. <form id="login" method="POST"> <input type="text" name="username" placeholder="Usuário ou email" /> <input type="text"…
-
0
votes0
answers222
viewsgetJson is not working
I think there’s a problem here: api/combobox_cidades.php?search=, if I put the php file combobox_cidades.php in the main folder (writing only: $.getJSON('combobox_cidades.php?search='), works. now…
-
0
votes1
answer123
viewsHow to get multiple keys in JSON with PHP?
How to obtain data with foreach through the JSON of that kind: { "12": { "0": { "9678": { "920": { "224": { "657": "José da Silva" } } } }, "1": { "0512": { "987/21": { "233": { "652": "Maria Silva"…
-
0
votes2
answers157
viewsHow do I get reply json in php?
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…
-
0
votes0
answers111
viewsDoubt about $.getJSON on pages using PHP Templates
I know and already know how to use the method $.getJSON jQuery returning data that is returned with PHP by json_encode(). It turns out, in the project I’m developing, I use a Template (PHP) for…
-
0
votes0
answers672
views -
0
votes1
answer596
viewsWhois de dominios php api en json?
I need to do domain queries, get the information about it, dns, ip, responsible, etc. I can do it for registration.br using the nicBr api https://rdap.registro.br/domain/ but need for domains . org,…
-
0
votes0
answers133
views -
0
votes2
answers746
viewsBrowse List in Jquery (JSON)
Guys, I have a JSON, which will be returned by an ajax, with the following structure: { "ExtensionData": {}, "CodCli": null, "Codigo": 0, "Data": "/Date(-62135589600000)/", "Detalhes": {…
-
0
votes1
answer319
viewsIntermittent problem with Uncaught Typeerror: Cannot read Property 'locac' of Undefined
I’m having this problem Uncaught Typeerror: Cannot read Property 'locac' of Undefined With the code: function fnc(){ var evt = (window.event ? window.event : event); var elemento = evt.target; var…
-
0
votes0
answers26
viewsProblem turning collected data into a json file
I am trying to write in a file . json, information I collect from a database but for some reason nothing is written. Follow the code: require_once('../helpers/connect.php');…
-
0
votes2
answers78
viewsSerialize Nhibernate object for JSON
How can I serialize a Nhibernate object for JSON. When I try to serialize error by saying that it is not possible to serialize an object in context.
-
0
votes1
answer625
viewsAjax Returning all page HTML
I have an AJAX request on a customer’s website on the product page, which when selecting the available size of the product changes the price, but on the return of AJAX instead of only taking the…
-
0
votes1
answer269
viewsOptimize printing of great SQL-Server results through ASP
Today I have a classic ASP page with an unconventional chain-select (read "armengado") that returns a select populated with some data from an sql-server database (2005). I select the building and…
-
0
votes1
answer86
viewsJquery json with Indice
I need to create a Json result, where the state is the index. <?php //header('Content-Type: application/json; charset=utf-8'); require_once('Connections/conexao.php'); $selec = "SELECT estado,…
-
0
votes0
answers40
viewsReceiving data from a website in a JS application - Phonegap
Is it possible to receive data from a website even if I don’t have access to its server? I did a search and saw them talk about JSON but for what it seems to me (I may be mistaken, of course) it is…
-
0
votes1
answer67
viewsPerformance problem when returning json with rabl after query with activerecord
I’m having trouble adjusting performance when returning json after a database query. I’ve tried a lot of things, and I’m not getting any faster. Someone can give me a boost with this ? This is the…
-
0
votes2
answers543
viewshow to compare hours and tell if the establishment is closed or open and return a Json message
Help me... Thank you. This is the following I have an Api with Php + Sql and returns the data in Json. In my data you have two fields openRestaurante and closeRestaurante, opening hours of an…
-
0
votes1
answer59
viewsReturn of JSON Data
I am performing a simple data return in a Jquery function. However, the error message is displayed. Follows code JSON: <?php header('Content-Type: application/json'); $dados = "Meus Dados"; echo…