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
-
3
votes1
answer241
viewsAccessing a list/array in a JSON URL
I am sending via JSON an array of strings, how can I access this array via url? example of some of the tests: http://localhost:51746/api/Language/Getlanguagelist? key=[spool,error]…
-
3
votes2
answers887
viewsHow to receive a json in Controller and pass to Object array
I am having the following problem, I need to take the Controller filtered objects to export to report. I’m sending by json using Ajax, but I don’t know if object is being sent to Controller,gave a…
-
3
votes3
answers272
viewsDeserialization of JSON
I’m having a hard time deserializing this JSON: string json = "{\"Cidade\":[\"Arrio do Sal\",\"Atl\\u00e2ntida\",\"Bom…
-
3
votes1
answer89
viewsHow to read this JSON correctly? MSSQL and Node
{ "recordsets": [ [ { "IdUsuario": 5152490, "strNome": "Roberto ", "IdPapel": 1 }, { "IdUsuario": 5152490, "strNome": "Roberto ", "IdPapel": 3000001 } ] ] I am trying to return to the customer only…
-
3
votes0
answers136
viewsUpdate all View data via Ajax
I need to update all my data View, i call this function to update, passing the company parameter: function CarregaCaixa() { var Empresa = $("#EmpresaFiltroId").val(); var url =…
-
3
votes1
answer512
viewsSerialize composite object into a single json
With Newtonsoft.Json, to the next object: public class Person { public string Name { get; set; } public string GeneralText { get; set; } public Address Address { get; set; } } public class Address {…
-
3
votes1
answer79
viewsIs it correct to make a user authentication by the backend return message?
Good afternoon, you guys! Earlier I took a question regarding user authentication in my application and after some good tips I was able to authenticate my user, the doubt now is whether the method…
-
3
votes1
answer490
viewsGenerate JSON with header and detail of multiple records
I have the following tables: orcamento storing information under the heading of the budget; orcamentoItens that stores budget items; itens that stores the details of the items. (I’ll put the…
-
3
votes1
answer562
viewsChange json Value with PHP
I have a json file where I am listing the information that interests me with PHP. I’m using Lottie.js to run this. json as a gif/video, my idea is to change the messages in English to Portuguese,…
-
3
votes2
answers40
viewsPrint more than one value with json
How can I show the name, age and city at the same time on the screen and not just the name? document.getElementById("demo").innerHTML = obj.name; makes it show only the name inside that obj but I…
-
3
votes1
answer585
viewsJoin two arrays in one with PHP
I have the following PHP: <?php $itens1= array("fruta1"=>"laranja", "fruta2"=>"morango"); $itens2= array("fruta3"=>"goiaba", "fruta4"=>"uva"); array_push($itens1, $itens2); echo…
-
3
votes1
answer171
viewsPython isset check (details)
My question is this, in PHP I have a code curl that returns some json as you can see in the code: $response = curl_exec($request); $header_size = curl_getinfo($request, CURLINFO_HEADER_SIZE);…
-
3
votes1
answer72
viewsCapture Json Array with Javascript
Good morning Galera, I know that the statement of the question is similar to many others, but the problem becomes a little different. I have a controller where filter the information that comes from…
-
3
votes2
answers307
viewsSearch(Json + Javascript)
I’m a designer and I’m trying to get into this front world...I have some questions. I’m starting a javascript search that accesses the…
-
3
votes1
answer255
viewsHow to read JSON object name containing special character?
My JSON file: "locomotives" and "vacant" I can read without problems, but when I try to read "vacant" it contains the following error:: that is, because of the character " - ", it is being…
-
3
votes0
answers493
viewsDigital signature with C# and Json
Good afternoon to you all. I’m using the link code https://github.com/Gread/BoletoOnlineBradesco that uses C# to sign Json and send the letters to Bradesco. My problem is occurring in Bouncy…
-
3
votes1
answer46
viewsDeserialize JSON with Newtonsoft JSON
I am trying to make an deserialize, to create a list with the contents of this JSON. However, everything arrives to the list as null. I’m gonna let down what I’ve got so far. I have the following…
-
3
votes3
answers504
viewsJSON validation with more than one object
I need to send a JSON from a String. When reading a series as below, it works perfectly: json = {"resultado":" resultado 111","peso":98,"sinal":"-44","nome":"divergencia ativos","quantidade":12} But…
-
3
votes2
answers96
viewsDeserializing JSON in PHP
Good afternoon, I’m having some doubts in PHP. I have a PHP file responsible only for presenting a CPF in JSON format, and with another file I am trying to consume this data to present on screen.…
-
3
votes1
answer53
viewsUse of only one attribute of an entity
I’m building a Rest API for Cities and Customers registration. My problem would be in relation to the Customer class that has as attributes personal data of the customer and a City, that would be…
-
3
votes1
answer114
viewsHow to format an array for JSON output?
I have the following array: const products = ["camisa-PP", "camisa-M", "camisa-G", "camisa-GG", "camisa-GG", "camiseta-PP", "camiseta-G", "cueca-M", "blusa-XG", "blusa-XG", "blusa-XG", "blusa-P"];…
-
3
votes1
answer95
viewsHow to import content from a JSON within an ESM (Ecmascript modules) module in Node.js?
It is common for me to see online courses, articles and tutorials over the internet, Node.js codes that can import local JSON files into code to be manipulated, used, tested, etc... In these…
-
2
votes1
answer1114
viewsHow not to serialize some attributes in Restful calls with Jersey and Jackson
I’m using the Jersey library in conjunction with the Jackson library to use REST-like web services. In calls, I usually use the following code that transforms a particular entity into a JSON to be…
-
2
votes1
answer3372
viewsHow to read a JSON file that is inside a package?
I need to file a case file *.JSON. I understand that there is a library for this in case I use the json-simple-1.1.1. How it is necessary to read the file first and then work with it. My question is…
-
2
votes1
answer237
viewsHow to convert a JSON object to XML in AS3?
Is there any method of converting a JSON object to an XML object using the actionscript-3 with Flash CS6?…
-
2
votes1
answer527
viewsConfigure the Jackson library for dynamic attributes
I am using the Jackson library to transform the following JSON into a Java object.…
-
2
votes1
answer3975
viewsRead a JSON from a URL
I need to read a JSON file, which is generated by PHP, through the json_encode; I have no idea how to do this, you have some example? Observing: Is in Windows Phone 8 C#! The answer the url gives is…
-
2
votes1
answer381
viewsJSON Structure for Highchart Line
I would like to know what would be the correct structure to create a LINE chart in Highcharts with dynamic data: Example http://jsfiddle.net/gumaro/6u4Ha/2/ I have values that I want to show in a…
-
2
votes1
answer338
viewsCreate Web Service by repurposing code from an already published site. Good practices in Asp.NET MVC
I need to create a web service in JSON reusing as much code as my site has, but I don’t know how to do it, if I should add a Solution to my site project etc. I can’t abstract the idea, I need to…
-
2
votes3
answers1028
viewsHow do I populate a $Scope (angular) with get. Json (jquery)?
I have a PHP application and use $.getJSON jQuery to fetch data and present it to my user. I would like to fill a table using Angular. How do I fill one $scope with the response of $.getJSON ? Code…
-
2
votes1
answer9424
viewsHow to generate a json file with new news to display on my website?
I would like to generate a JSON file for my site to display the latest news at the top to another third site!
-
2
votes1
answer469
viewsPush notification on a local network (case without internet)
I studied in the services of GCM for sending and receiving notifications to the android, but I have the following doubt: If I am in a local environment, and the data server is in same environment,…
-
2
votes1
answer883
viewsReturn data from a JSON by sorting from a key
I have a JSON file where in the records I have a key that defines a date in the following format: "yyyymmdd". I need to return the existing records in this file but sort them through this key. How…
-
2
votes1
answer2865
viewsMake a POST with AJAX and JSON with pure Javascript
I have the following code on jQuery $.post('/privmsg?', { folder: 'inbox', mode: 'post', post: '1', username: 'Wagner', subject: 'Título', message: 'Mensagem' }); I am studying Javascript, and would…
-
2
votes2
answers408
viewsLoop json with PHP
I have the following json { "nome": "Alisson", "nome": "Bruno", "nome": "Junior", "nome": "Nicolly", "nome": "José", "nome": "Greice", "idade": "20", "idade" : "21", "idade" : "29", "idade" : "14",…
-
2
votes2
answers949
viewsInsert the json format into mysql and recover in Java
I have the following string in format json: { "ADT":"0", "CHD":"0", "INF":"0" } I need to do the Insert in a table on mysql database and retrieve it in Java. I’m using VARCHAR(50) and it looks like…
-
2
votes1
answer183
viewsForce a 200 header in Ajax while the PHP function is in Sleep
I am creating a chat function, however, the server is waiting for a BD interaction for a period of 10 seconds. The problem is that while the Ajax connection is open waiting for an answer within 10…
-
2
votes0
answers127
viewsHow to read the specifications of a REST Web Service
Hi, I need to create a project with consists of consuming a REST web service, where consuming this web service I need to generate an XML with its information/specifications, what are its methods,…
-
2
votes1
answer454
viewsSearch results for an API in php/json
I am using the following API: http://api.elsevier.com/documentation/SCIDIRSearchAPI.wadl It is a database of books/ documents and I need to access there to get some records. I already have the…
-
2
votes2
answers2343
viewsRequest Method Switching from GET to OPTIONS alone
I have the following code: $(function() { $('#method').change(function() { var method = $(this).val(); if (method == 'GET' || method == 'DELETE') $('#json-group').hide(); else…
-
2
votes1
answer861
viewsPass values to PHP file with JSON
I have the code below that runs on any PC and asks for information for a PHP file on a remote server. How do I pass a parameter to this PHP using my JSON code? So I can send a data and have a…
-
2
votes0
answers45
viewsProblem with json
Why am I unable to recover this json from the web service of the api I am using. var url = "https://api.roomorama.com/v1.0/rooms.json?access_token=RS97GGOxoeuo66dXwF4UcHhjmgKjUnAjDiBVDAVTo";…
-
2
votes1
answer626
viewsHandle Json Array in PHP
How do I get a particular item from a PHP array. I have the following code: <?php if (isset($_POST['newUsers'])) { $newUsers = $_POST['newUsers']; foreach ($newUsers as $user) { $usr =…
-
2
votes1
answer565
viewsHow to transform Json into an object with dynamic fields using Gson on Android?
I have the following json: {"Data" :{ "Description": "app", "Campo2": "app2", "Campo3": "app3"}, "Instring" : "1", "Token" : "Zoebarw9nimk9o"} The "Date" field may contain 1:N fields. To illustrate,…
-
2
votes1
answer122
viewsMake large-scale textContent exchanges with Javascript
I have a page on which I want each event to be changed the textContent of a <h1>, one <p> and a <img>. I thought of php includes or Json. I don’t know. (It’s a lot of content, so I…
-
2
votes1
answer1394
viewsUpdating Div of data from a Json file without flashing the screen
I am using the script below to take values that are in a Json file (which is stored in an industrial automation equipment connected on a TCP/IP network and is "type" a ULTRA basic web server) and…
-
2
votes3
answers359
viewsMonetary unit with JSON
I’m getting from the JSON a currency format as follows "Preco" : "2299.0000" It appears in my form (ASP Classic / HTML): R$ 22.990.000,00 How to do this treatment? You have to use JS? The correct…
-
2
votes2
answers341
viewsPHP array for JSON
Hello, all right, all right? I am taking the values of a table in a database and "transform" them into JSON. I am with the following PHP code: $sql = "SELECT * FROM pessoas"; $query =…
-
2
votes1
answer58
viewsAccess option of object without being with dot
I have an object json in javascript and need to access it,was currently accessing your options so: registro.man_ins_prod_05 Entertaining on the hightchart in the part of adding values(date) on the…
-
2
votes2
answers71
viewsHow to get multiple Jsonobject with the same key?
Basically, I have this JSON:…