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
votes1
answer49
viewsInsertion, editing, removal and visualization of data
I have a CRUD in PHP developed with the MVC standard, all interaction with the database is performed with PDO, my challenge is, pass all data requests asynchronously using Ajax and Json. I have only…
-
2
votes1
answer352
viewsReturn Web Service is a string, how can I query the data?
I am consuming a Web Service , follows the JAVA code (JSP): <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <%-- start web service invocation --%><hr/>…
-
2
votes3
answers529
viewsTurn Jsonobject into Jsonarray
How do I get the data from this Json? I want to turn it into a Jsonarray to go through, but it’s a Jsonobject... { "1":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"},…
-
2
votes1
answer408
viewsUsing kivy Urlrequest
How exactly do you use kivy’s Urlrequest? In this case you would like to download a page that returns a json file. Using the python requests library I can do this easily, but when running the…
-
2
votes2
answers122
viewsI cannot filter array objects using Filter
I am trying to return the objects according to the generos id but an empty array is being returned var filmes = [ { title: 'Primeiro Filme', genres: [ { id: 10 }, { id: 15 }, { id: 21 } ] }, {…
-
2
votes2
answers545
viewsComments on JSON in Visual Studio
JSON does not support comments, but in Visual Studio (2017 to be more specific, my version) I add comments and do not present any error, but when I open the file in Visual Studio Code, the following…
-
2
votes1
answer717
viewsError 403 Forbidden while consuming CEP webservice
I’m trying to consume a webservice of ceps but always returns me 403 and it is public. Testing the Working Webservice : http://apps.widenet.com.br/busca-cep/api/cep.json?code=01001000 My Controller…
-
2
votes1
answer633
viewsHow do I allow accentuation feedback in JSON using PHP?
Attached the photo of my return JSON I have following code: <?php header("Content-Type: text/html; charset=UTF-8",true); $array1 = array(); $contador = 0; $estado="online"; if (!$enlace =…
-
2
votes2
answers393
viewsCompressing a string to upload into a field of the JSON object
Hello, I am developing a java API, which returns a json object. One of the final json fields is long text, of unknown dimension. Text may or may not contain special characters. I am sending the raw…
-
2
votes1
answer86
viewsJsonconvert returns Exception in Xmlnode
I tried to convert Json to Xml so making it easier to read. And I used the following code... using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using…
-
2
votes0
answers356
viewsSelect dependent with three levels
I am setting up a simple system of booking vehicles for the company and I need to assemble a "triple" combo that will check the vehicle and the available schedules for it. I set up a double of the…
-
2
votes2
answers358
viewsGood Practice for Rest Services
When I made my first Rest API, I defined my JSON structure and always returned that same structure even if the pair had given it or not. I talked to a new co-worker and he presented me another…
-
2
votes2
answers147
viewsPopular View with JSON
I use a library called Alamofire-Swiftyjson to make a request JSON. Call example: Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"]) .responseSwiftyJSON({ (request,…
-
2
votes1
answer1125
viewsHow to modify a Json object (javascript)?
I need to change a json object that I am receiving. I would like to insert a data input into this Json. The idea is simple put a dice, it pulls the json according to this data, but I need to change…
-
2
votes2
answers954
viewsReturn Laravel json API
I’m having a problem following, I made a API and I get one back array: "id": 1, "email": "[email protected]", "senha": "lucas123", "created_at": "2018-02-15 16:48:12", "updated_at": "2018-02-15…
-
2
votes1
answer1323
viewsChange JSON file on server
I have the following form: <form method="POST"> Title <input type="text" onchange="Function()"> X <input type="text" onchange="Function()"> Y <input type="text"…
-
2
votes1
answer139
viewsJson - JAVA (Eclipse)
How do I read a JSON (jsonl) file through the eclipse in java? Need some package?
-
2
votes2
answers343
viewsError passing PHP Array to Angularjs by JSON
I am in doubt in a code that I am developing, I am passing a query in the Mysql database and I need this answer to return in JSON for Angularjs to understand and write in HTML. Follows the code:…
-
2
votes0
answers264
viewsInclude and remove elements from a Json with lib Gson (Java)
I am using the Gson library in Java, I have the following structure in a json file: {"idAluno":4, "nomeAluno":"Teste da Silva", "listaDeTurmas":[1,2,4]} Is it possible, with this library, to change…
-
2
votes1
answer434
viewsGenerating valid Php Array for json conversion
Explaining a bit of the purpose of the code: Through the sql query returns data, the only data needed is the 'id' and the name of the 'area', then two arrays are created, one to receive the 'id’s…
-
2
votes1
answer1167
viewsHandle JSON data coming from a jQuery datepicker request with ajax
I need to create an agenda.. I have a datepicker and a fixed table beside with schedule that start from 08:00am until 19:00pm and when I click on a datepicker day it returns to me all the queries of…
-
2
votes2
answers316
viewsJSON function Does not return value
I have a problem, I would like to popular my Dropdownlistfor with the result of another Dropdownlistfor, for this I am using Ajax and Json, same concept they do when they want the result of State to…
-
2
votes2
answers301
viewsAjax request data with Angularjs is not getting to the action method
I know this is very basic, but I’m starting now. I’m creating a neighborhood register, using Angularjs, my back-end is in C# with ASP.NET MVC. My method is called by view, but does not receive JSON:…
-
2
votes1
answer1439
viewsRequest Post API Messenger with Spring Boot
I need to create a post method that returns this information to the Messenger API with Spring Boot, if anyone can give a light thank you. The example below is found in the Facebook Developers…
-
2
votes1
answer10706
viewsHow to use foreach with this type of JSON (PHP)
I am trying to display the values of a JSON with PHP more unsuccessfully. Code Used: JSON { "friendslist": { "friends": [ { "steamid": "76561197960265731", "relationship": "friend", "friend_since":…
-
2
votes3
answers310
viewsdoubt with ajax and angular
I have my back-end, in my controller I have a way salvarBairro(string dados) I’m using angular, this guy here calls my way to salvaBairro from the back $scope.AddBairro = function (bairro) {…
-
2
votes1
answer96
views -
2
votes1
answer476
viewsAJAX appear Divs according to database ID (MYSQL)
I’m trying to do that every time I squeeze in #buttonIdUltimoItem a structured DIV appears taking information from database from the younger to the older according to the ID. The problem that…
-
2
votes1
answer316
viewsJqgrid, shows success in loading, but does not mount Grid
I’m with a grid on my website I use the JqGrid. What is happening is that when the data comes back from the request, they are formatted the right way because the data itself JqGrid enters the method…
-
2
votes2
answers115
viewsChange in json File Format
My file is coming in this format, but I would like it not to appear this #id information before sale: { "$id": "1", //como não mostra isso? "venda": [ { "$id": "2", "poule": 73, "idusuario": 4,…
-
2
votes1
answer509
viewsTransform Vue array into Json
I’m trying to pass on a textarea an array of Vue.js, and would like to turn it into json, what would be the best way to do that? new Vue({ el:"#app", data : { nome_da_variavel_array: '[{variavel :…
-
2
votes1
answer231
viewsDesign standard to combine data from different databases
I’m taking data from two different databases and need to format this data for Json. The problem is not accessing the two banks and getting the information. The problem is that my class became more…
-
2
votes0
answers366
viewsAjax returning HTML along with JSON
The code I made was working normally but suddenly it started to behave differently. I’ve done all the debug possible, take a look $( function(){ // When submit it…
-
2
votes1
answer674
viewsPHP + Jquery + JSON
Have function calling an ajax. As follows below: function verifica(){ var meuid = $('.meuid').attr('id'); var datas = "user="+meuid; $.ajax({ type: "GET", url: 'sys/stream2.php', data: datas…
-
2
votes1
answer866
viewsFullcalendar fill events by JSON
I’m putting the Fullcalendar component in my Java application. I’m having trouble loading events into the calendar. How do I read json inside my js file? Follow the code below: JS file:…
-
2
votes1
answer164
viewsHow to send JSON as a response to the post
I have page A with the following code to send a POST to page B: function curlPost($url, $dados) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl,…
-
2
votes1
answer1419
viewsPrint data from a JSON
I have an SQL query that I have already tested and it is bringing the correct result, my difficulty is in creating an array with the line data, turn it into JSON and print on screen. When I try with…
-
2
votes2
answers1086
viewsTransform Json return to list of C#objects
I have a request for an API that returns the following JSON:…
-
2
votes1
answer53
viewsproblems adding an element to HTML with JSON
var componente = { HTML :'<div class="alert" style="background-color:#951f2c !important;">' + '<input type="text" class="form-control titulo-valor" placeholder="Digite o Título do Bloco"…
-
2
votes2
answers2499
views -
2
votes1
answer246
viewsError 400 when creating Inputstreamreader for URL with spaces or accents
Hello, I have a problem when I use Inputstreamreader to read some Urls that contain spaces or accents. What happens is that I am reading a URL that contains a JSON (one of the League of Legends…
-
2
votes1
answer448
viewsReturn list of Jsons
On the path /getAll wish to return a list of Jsons but get one 'list' Object is not callable, why this occurs and how can I return to my JSON list? Formerly, Mylist was called list and after reading…
-
2
votes1
answer366
viewsHow to catch a certain json variable
<script type="text/javascript"> $(".addTrack").live('click', function() { $('.playerTocador').css('display', 'block'); var mp31 = $(this).attr("data-servidor"); var session =…
-
2
votes1
answer1147
viewsHow to import data to Json from a table in Excel
I want to generate charts with Chart.js and need to import data from an excel spreadsheet to json in order to elaborate the chart. var data = { labels: ["January", "February", "March", "April",…
-
2
votes0
answers91
viewsReturn test in an API
I’m testing a way to get data from a database with a simple API, I don’t know if it’s right, if you can give me a hand I wanted it to work via POST, but the tests on POSTMAN only returns if I put…
-
2
votes3
answers8946
viewsSearch ZIP by PHP Street
First of all, I need to search the zip code down the street, which means I don’t have the zip code and I have the address, I need to find the zip code by the address. So please don’t link this…
-
2
votes0
answers131
viewsFilter points in map [javascript]
Hello I have a select on my site that serves as a filter, and I would like to fade specific points on the map depending on the chosen filter. Is it possible to associate the points made on the map…
-
2
votes0
answers295
viewsHow to page using Flask and return in Json?
I need to make a query to the bank (neo4j) and return a json, but as the answer is very large precise paging. I’ve looked at the stack a lot, but most responses use the sqlalchemy pagination method…
-
2
votes0
answers144
viewsInsert data dynamically with xml the coordinates in the heat map
I’m trying to use this code to read the coordinates data xml instead of the statically inserted data in the code but it doesn’t work when done this way. Code: function getPoints() { return [ //new…
-
2
votes1
answer375
viewsDoubt with Array in C# returning data in Json
I have a structure that returns me the results of the header and detail, only that the records duplicates according to the details, as I could bring only 1 time the header, I appreciate the help.…