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
-
7
votes1
answer423
viewsTable does not appear in return Json
I’m trying to show a table on my return insert but I am not succeeding, the insertion operation is correct as well as the confirmation message, but the table is not displayed, I have it: function…
-
7
votes1
answer393
viewsAjax function does not pass the Success
My function calling my web service var email = document.getElementById("email").value var senha = document.getElementById("senha").value $.ajax({ url:…
-
7
votes1
answer3337
viewsSend data to controller via Json
I am trying to send via Ajax some data from my form. In this form, I have fields inputs normal and a list of vendors I previously selected via checkbox. Follow screen: I am creating the JSON object…
-
7
votes4
answers327
views -
7
votes2
answers927
viewsReturn reading in JSON
I can read the return of json in the format [{"celular":"123456","_id":"1"}] The code that works with the json above is this: public static void MakeJsonArrayReq() { JsonArrayRequest jreq = new…
-
7
votes1
answer280
viewsHow to read data in Json on the server?
I have an Asp.Net MVC project and I’m trying to repurpose an Action that returns Json within the server, but I’m unable to work with Json returns in C#. I’m doing research, but I haven’t found…
-
7
votes2
answers1595
viewsHow to make Jqueryui autocomplete with PHP return multiple data?
I have two inputs, I’m using the automplete in only one. The code of the autocomplete: $(document).ready(function() { $.getJSON('include/funcoes/carrega_cidades.php', function(data){ var dados = [];…
-
7
votes2
answers4969
viewsAndroid: read JSON data
I have a url that gives me the data in this format: {"to": "DKK", "rate": 7.4417, "from": "EUR"} I’m trying to read them this way: JSONObject obj = new JSONObject(); JSONObject obj2 =…
-
7
votes4
answers5024
viewsHow to disable field with Javascript?
I own these HTML fields: <div class="col-sm-6"> <input asp-for="ConfiguracaoTecnibra.HabilitaTeclado" type="checkbox" id="cbHabilitarTeclado" onclick="HTeclado();" /> <label…
-
7
votes1
answer325
viewsHow to read a JSON file to render HTML list
I am having a difficulty in an application that reads a json file and renders in HTML, I am not able to access the object correctly, the variable products is as Undefined. Could someone help me? if…
-
7
votes2
answers990
viewsLaravel Restful Api - JSON errors instead of HTML
How do I get the controller to automatically return a replay to the client in JSON format instead of HTML in case of an error (e. g. error 404, 500, 419, etc.). For example, if there is error 500 in…
-
6
votes4
answers10238
viewsProblem using paragraphs in JSON file
I’m creating a web application that uses JSON files to save site content. In these files are saved small fragments of text containing paragraphs. When I try to separate the paragraph using a \n\ or…
-
6
votes2
answers3548
views -
6
votes5
answers1876
viewsRetrieve a final value from a json in Javascript
You can recover a result value from a url by jQuery? My problem is this, I need to receive the final result of this url:…
-
6
votes1
answer682
viewsHow to produce JSON in the format that Highcharts expects?
I have the following code in C#: Dictionary<string, object> dataResult = new Dictionary<string, object>(); dataResult["data"] = new List<object[]>(); dataResult["name"] = i;…
-
6
votes3
answers2397
viewsjQuery autocomplete shows no options
Description Need: I need to make an autocomplete with jQuery, PHP and from what was selected, caught the ID, I make a query in the database and display what I need. Problem: I’m having trouble…
-
6
votes4
answers9080
viewsSelect2 with AJAX
For some reason my Select2 using AJAX to fill it is not working. When I put a Debugger in the code, it does not enter the method result: and also returns no error. HTML: <input type="hidden"…
-
6
votes3
answers993
viewsHow to simulate JSON responses?
I need something that simulates JSON responses for me. A while ago I had seen a site that did the following: You pass parameters through a URL, e.g.: ?nome=Wesley&idade=21 Received in the call…
-
6
votes3
answers1650
viewsHow to turn a query into a json?
I’m trying to transform the data returned from a database query into Json format, so far it’s almost right, but I think the format is being created incorrectly! Json is being generated as follows!…
-
6
votes2
answers1160
viewsHow to access JSON values from ajax in a PHP page?
I passed via ajax those values: $.ajax({ url: '/loterias/cadastro.php', type: "POST", data: "{'numeros': '" + numeros + "', 'jogo':'" + jogo + "'}", dataType: 'application/json; charset=utf-8',…
-
6
votes1
answer754
views$. getJSON does not record return on variables
I created a function that takes the values of a JSON and (should send these values to variables within the function) so I could use these variables in the function continuation. The problem is that…
-
6
votes6
answers10935
viewsHow to receive a JSON object from an external url/domain?
I found a Lottery API that brings me the data of the result of a Lotofácil draw, but I am not able to access the data of the JSON object. I’m trying this way: $(document).ready(function(){ $.get(…
-
6
votes1
answer977
viewsInsert data into an External Json
How to insert data into an external Json file: var json = { caminho: "img/minhaIMG.png", descricao: "minha descricão" } How can I enter new data into this json file? In my case, I would use it as a…
-
6
votes2
answers626
viewsLaravel and Json Web Token
I’m having difficulty authenticating through the Json Web Token (JWT) token in the Laravel framework, I’m using the framework recently and I came across the following error. Whoops, looks like…
-
6
votes1
answer954
viewsSend data in json format to php
I know it is fully feasible to send PHP json to JS, but it is possible to send my data via ajax in json format to PHP?
-
6
votes1
answer1571
viewsComposer - What is it and what is it for?
I have seen several times in projects the archive composer.json! I’d like to know what it is and what it’s used for?
-
6
votes2
answers2437
viewsHow to properly save an image URL in Mysql database?
I am testing the targeting of images with the URL. However, during the tests, the URL was returned with changes as can be seen below: URL inserted in the database:…
-
6
votes3
answers130
viewsHow to implement methods in Json using Serializable?
I’m making a webservice where I want to return the data in JSON, how I could implement the methods, which is the best way? GET PUT DELETE POST I did a GET method, it went like this: using System;…
-
6
votes1
answer1428
viewsInfinite scroll in Angularjs with external JSON
I’m having a bit of trouble creating an infinite scroll in Angularjs from a JSON file generated on an external site. What I need is for the infinite scroll to be called when the variable item posts…
-
6
votes2
answers1395
viewsWhat is the difference between ~0.0.1 and 0.0.1 in package.json version control?
This code is an example: { "dependencies": { "gulp": "~0.0.1", "browser-sync": "^0.0.1" } }
-
6
votes3
answers652
viewsJSON for PHP via AJAX
I really need some help.. I have a select with the products: <!-- panel preview --> <div class="col-sm-5"> <h4>Adicionar Produtos:</h4> <div class="panel…
-
6
votes1
answer202
viewsProblem Doing JSON to a Site
I need to do JSON from the following link, in order to obtain the data for a record AWP | Dragon Lore (Field Tested) of the day: 2017-03-25. Link: https://opskins.com/pricelist/730.json How can I…
-
6
votes1
answer566
viewsConsuming Webservice with large data volume
I have a demand where I need to import a file JSON with 65k of records for my app Android,after calling my service URL REST the app starts importing the data but crashes after some time, I would…
-
6
votes1
answer469
viewsHow to change this JSON object?
I’ve had the following problem for a few days: I’m using Cakephp and sending JSON to a datagrid of Easyui as follows: $rows = $this->Produto->find('all', array('fields' => array( 'id',…
-
6
votes1
answer873
viewsHow to access data from the innermost "level" of a JSON?
I needed a way to access the innermost "level" of JSON below: (name, value, last query and source) { "status": true, "valores": { "USD": { "nome": "Dólar", "valor": 2.333, "ultima_consulta":…
-
6
votes1
answer633
viewsReturn data as JSON using ASP.NET MVC
When developing a web application, using ASP.NET MVC, I need to return the layer of view, data as JSON in the following format: { 'title': 'Gallery 1', 'description': 'Description of gallery...',…
-
6
votes1
answer1291
viewsHow to structure a mysql database from a JSON
I have the following structure json test: { "CE": { "Fortaleza": [ { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" }, { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" } ],…
-
6
votes2
answers3839
viewsHow to remove a Key from a JSON
Suppose the following JSON: {"id": 1, "preco": 100, "detalhe": "nenhum"} If I build an array with 100 of these objects and want to take the "detail" key from everyone, for example, it is possible…
-
6
votes3
answers1530
viewsSend file and text via jquery Asp.net mvc
Guys I managed to send the file through this code: var jqXHRData = null; $(function () { $('.progress').progress({ percent: 0 }); $("#divUpload").on('click', function () {…
-
6
votes3
answers658
viewsPass SQL output to JSON
Hello, I want to pass the result of a select to json, but I can’t check why I can’t see it. So someone could tell me why this code doesn’t print anything? include_once 'conexao.php'; $query =…
-
6
votes1
answer2145
viewsWhat is the difference between JWT and JWS?
I asked a question a little while ago on the site regarding the JWT, which is used to create access tokens through JSON. I tried to implement JWT between two applications that use different versions…
-
6
votes2
answers996
viewsHow do I protect my JSON application?
I created a unique subdomain to provide data from my tables in JSON, it facilitates requests for both the mobile version and the desktop version of my site, but I would like to protect such data or…
-
6
votes3
answers150
viewsJson format is valid, but conceptually incorrect. How to argue?
We recently requested a service for a partner company, to consult with some people. The service was designed from scratch to meet a particular system demand of ours. This is a simple Rest service,…
-
6
votes3
answers965
viewsList JSON data with Javascript
I’m trying to list the data of a JSON through Javascript, but it only presents in the list a position 0. Below follows the JSON: [ { "id":"23" }, { "id":"24" } ] I have the following code below…
-
6
votes4
answers1946
viewsIncorrect Date/Time Formatting Nan/Nan/Nan Nan:Nan:Nan
The Field DateTime that returns from Database is formatted as dd/MM/yyyy hh:mm:ss, by now when you start looping ($each) the code below the format changes to: "/Date(1566322265000)/". I created this…
-
6
votes3
answers90
viewsGroup array of emails by domain of each email in Javascript
I have an array of emails: emails = [ "[email protected]", "[email protected]", "[email protected]", "[email protected]" ] I am using regular expressions to parse domains, and my intention is to…
-
5
votes2
answers549
viewsImport events in Google JSON format
I want to import events from a non-public server-side Google Calendar (PHP) in JSON format. Since I only want to receive information and do not need to edit/create events I assume there is a way…
-
5
votes1
answer174
viewsHow to export inside the subGrid?
Information: I’m using the jqGrid(4.54), and also implemented the SubGrid, after opening the SubGrid, it is necessary to export the contents of the open table. Question: There is a way to implement…
-
5
votes2
answers201
viewsBetter/Secure way to transfer sensitive data to an android application through JSON
I am trying to develop an application for android that will work with a database in this case Mysql and I was thinking to make the communication between the database and the application through JSON…
-
5
votes3
answers1456
viewsEncapsulate values returned by JSON within a single object
I have a question, I have this code below on controller: [Authorize] public JsonResult Teste() { var licencas = new List<Object>(); licencas.Add(new { Responsavel = "José", Ticket = 79007,…