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
answer257
viewsChange the json value
I have the following JSON: [{"id": 1,"preco": "R$50"}, {"id": 2,"preco": "R$70"}] I would like to change the price value by removing the R$ leaving only the numbers using javascript or jQuery…
-
1
votes0
answers48
viewsGetting data from a JSON Api to a Data View Grid
I am using an Api (Json): API And I would like that when I open the program I automatically obtain the data of the api, in Dataviewgrid, as I can solve? PS: I have already used newsoftjson…
-
1
votes1
answer154
viewsNotifications in Android app
I am developing an application and would like to know how I do to generate notifications when there is a new record in the database, I am receiving the data via JSON. I was watching Firebase, but I…
-
1
votes0
answers95
viewsHow to return BD Json text to Arraylist in Java
I am having problems converting a set of texts in the Json format of the database to a set of Arraylist texts in Java. Follow the code below: Java model. public class Sala { private String…
-
1
votes0
answers135
viewsSelect2 displays value instead of text
I have some fields that use Select2 to make a basic CRUD, but consulting some fields from another base. The question is, when I click update, I put in an array all table values (dataTables) and then…
-
1
votes1
answer130
viewsGroovy - JSON List Scheme
I have a problem reading a certain part of a file xml that I’m turning into file JSON. First I get this file with the class File and throw him in my class XmlParser, responsible for parsing my xml…
-
1
votes1
answer841
viewsSeparate a JSON array into columns and rows
I’m getting a JSON array in the back end this way : { "idDistrito": "23", "nome": "rere", "codigoDne": "154545", "cns": "565665", "entidade": { "idEntidade": "1", "nome": "Entidade 01" },…
-
1
votes0
answers243
viewsAndroid sending POST Json using JAX-RS receiving object with null array
I am trying to post an object but the array only comes null.. someone can tell me what is wrong? @XmlRootElement public class Produto implements Serializable{ private String nome; get e set...…
-
1
votes1
answer215
viewsLoop with Angularjs data
I would like to make a frame with Angularjs data Populating of the data via json so: Example: date = ""01/01/2015" but, will be shown only the day The table is made with a loop <div…
-
1
votes1
answer68
viewsgetJsonObject bring specific field
I have an object that comes when selecting a particular button. The object is coming right. System.out.println(filter.getJsonObject("cadastro")); Upshot:…
-
1
votes2
answers189
viewsTooltip when it’s deactivated?
I want to make a tooltip appear when the button is disabled http://prntscr.com/i9tli4 saying that you need to mark the checkbox of terms, as soon as you mark it the tooltip disappeared. Can anyone…
-
1
votes2
answers2506
viewsHow to send and receive image by json?
i made an app in Xamarin that the person will have to sign and I need to send this image to the server If possible leave the code to perform such task
-
1
votes1
answer178
viewsHow to convert date at select time and return via Json
In my form I am using the Bootstrap-Datepicker so that the user can inform the desired date at the time of registration, works correctly, but at the time of making a change I am trying to bring the…
-
1
votes0
answers751
viewsJson quotation with the return of the value of Commodities like Soy and corn
I am recovering a list in JSON/XML using the function of obtaining the quotations of commodities such as SOY and CORN. Could you point me to a source?
-
1
votes1
answer125
viewsJsonobjectrequest does not enter onResponse()
I’m doing a home automation project with Android and Arduino and I have this snippet of code in my class whose purpose is to consult the values of Webservice in Json. But every time I call this…
-
1
votes1
answer220
viewsCarrregar view table with JSON object
I have the following code in my controller: public JsonResult List(string nome){ IList<ClienteDto> clientes = string.IsNullOrEmpty(nome) ? _repositoryCliente.Get() :…
-
1
votes1
answer972
viewsSend list of JSON c#objects
Well, next, I’m trying to send a list of objects through JSON to a C#controller, where it contains an object Answer, and in that object, contains another call Field. However, in the controller, I…
-
1
votes1
answer898
viewsInterpret the JSON response of a Webservice that was called by Arduino
How do I interpret information from a Webservice who was called by the Arduino? Webservice returns a JSON and I need to interpret it. An example of the answer can be seen below: [{"valor":"10"}] The…
-
1
votes2
answers688
viewsHow to save an object (JSON) by copying in Javascript
How to store the current state of a json object per copy? Because if I save by reference I lose the exact information of the object at that moment of assignment. Object example: var sessao =…
-
1
votes1
answer734
viewsSpring, Angular JS and Exception Handling in Service Layer
I have an app that uses Jasper-Reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7, Tomcat 8 and at front-end we use Angularjs. The requisitions Rest are made via ajax. The application…
-
1
votes1
answer85
viewsHow to catch the Elements of a json?
I have the return of a requisicao in the following format: There in options there are the types of cards the json returned. I want to get each of the types without manually typing their name.…
-
1
votes1
answer45
viewsHow do I get the given 'distance' in JSON in this example?
How do I get the given 'distance' in JSON in this example? $url =…
-
1
votes1
answer529
viewsError 500 when trying to give a post from a JSON to the web service C#
I have a WINDOWS FORM C#application, where I communicate with a web service, when I try to send a very big data from my application to the web service I get error 500. I can do a POST on any other…
-
1
votes1
answer30
viewsJSON returns null when trying to get information from the database via PHP
I am trying to get information from php database and pass to JSON, however it always comes empty returns null and without any error. [ { "current_field": null, "field_count": null, "lengths": null,…
-
1
votes1
answer431
viewsHow to view PHP errors using Ajax and JSON?
You know those error messages that PHP returns when we write some wrong code or, for example, we call some variable that doesn’t exist, or we even try to include a non-existent file. When we make an…
-
1
votes0
answers39
views -
1
votes2
answers169
viewsJSON Openload PHP
Can anyone help me? I have the following json url: https://api.openload.co/1/file/info?file=6PHaY9bqRYc I wanted to know how to list in php each part that has in the json leaving type Name: name you…
-
1
votes1
answer62
viewsHow to take a JSON data in this case
I’m not getting a given JSON in this case: Use this site only for own testing https://devjp.xyz/data.json I tried some combinations: $url = "https://devjp.xyz/data.json"; $json =…
-
1
votes0
answers53
viewsWebservice Sefaz
Good afternoon. I am developing an ERP management, and wanted to implement tax bill, but I do not have much knowledge about. Can someone help me how to return the values, for example this…
-
1
votes1
answer542
viewsHow to popular a postgres table with JSON?
I would like to popular my tables with Json. But I’m not getting it. Does anyone have any solution? Follows JSON: https://gist.github.com/letanure/3012978…
-
1
votes0
answers21
viewsHow to compile the JSON-C library on Windows?
I downloaded the source code from lib json-c, but I don’t know how to compile using codeblocks
jsonasked 6 years, 5 months ago Nerd Overflow 11 -
1
votes0
answers45
viewsDecode JSON files in PHP without json_decode
I am currently returning JSON data from queries via Elasticsearch, however, the returns have a lot of information and the use of json_decode to be able to manipulate this data becomes very costly…
-
1
votes1
answer55
viewsJson via POST giving error
Hello! I am sending a Json through an Httpclient and it is returning an error about header. Does anyone know what might be? JsonDeDados = sender.sendMessageDATA(); List<NameValuePair>…
-
1
votes1
answer267
viewsError sending Arraylist via POST in Retrofit 2: java.lang.Illegalstateexception: Expected BEGIN_ARRAY but was STRING
When I try to send an Arraylist via @POST to be saved to my webserver with Retrofit2, Arraylist is saved, but I am getting the following error: java.lang.Illegalstateexception: Expected BEGIN_ARRAY…
-
1
votes1
answer188
viewsGet back in PHP JSON
It has a system that will send a return to me every day, however I am not able to receive the data to record in the bank, someone can give me a light? This is the data sent by the system -H…
-
1
votes1
answer63
viewsFill a select via jquery in cakephp
I made it a little easier, but it’s not working yet. Instead of assembling everything in javascript, in my action I assemble all html and in javascript I only pass the mounted html to my select.…
-
1
votes1
answer2484
viewsMongodb query and return array specific elements within objects
Guys, I need a help to query certain values in a document. I have a collection in Mongo that follows this structure, including this is the document I can and need to locate:…
-
1
votes1
answer599
viewstransform string into javascript array
Good afternoon, have the following string [{"programa":"teste"},{"programa":"Aprender"},{"programa":"outro teste","indice":"0;1;0"}][{"programa":"Programando…
-
1
votes2
answers1263
viewsSponse() in XML with Laravel
I have studied about developing Apis with Laravel, a quick question, it is possible to return an XML instead of a json? instead of doing: return response()->json($json); do something like: return…
-
1
votes1
answer125
viewsGrab information from a JSON file with spaces
I am developing an application using Javascript and I need to get some information from a JSON file, but this file comes with spaces. I wonder if it is possible to get this information even with the…
-
1
votes1
answer1323
viewsExtract data from a json file using Simplejson?
Json file I’m using. { "url" : "https://scontent-gru2-1.cdninstagram.com/hphotos-xaf1/t51.2885- 15/s320x320/e15/12523558_1184627644899567_723648549_n.jpg", "low_resolution" :…
-
1
votes1
answer271
viewsUndefined index in value pass with AJAX
I am trying to send binary Blob data by Ajax to upload via PHP. However, I am unable to access $_GET. Returns an error saying undefined index: responseText : "No imgagem found" when I comment the…
-
1
votes1
answer32
viewsPrint information from a php file that generates json
My.php data file generates a json on the screen with the database data, as I could do to take this generated json data and print it to a table for example?…
-
1
votes1
answer308
viewsHelp with Datatable Server-side
Hi wanted to know the best way to create a Datatable Server-side. Some questions I have: The next button doesn’t work, and the record counter doesn’t work. How do I tidy up? I am using Start and…
-
1
votes1
answer115
viewsHow to pass vector as argument in shell script?
I would like to pass a JSON-style vector as an argument for a script. Example : #!/bin/bash vetor[]=$1 echo ${vetor[*]} i=0 for nomes in ${vetor[*]} do i=$(($i+1)) echo "Nome $i é $nomes" done And I…
-
1
votes1
answer614
viewsjson_encode Empty
Below my PHP code. It takes the data from the database, puts it in an array and then goes through a json_encode. However, it does not print anything, how to solve? Note: Using print_r in the array…
-
1
votes1
answer106
viewsHow to convert JSON to XML in ORACLE 11g?
Good afternoon, I have a problem at work. Need to create a Function in oracle that performs the conversion of json to xml and show the result as table. I know version 12 of oracle does this easily,…
-
1
votes1
answer201
viewsUse data from a request in a global variable
I’m having a difficulty that I’m sure is simple for you! var request = require('request') var a var b request('https://exrates.me/openapi/v1/public/ticker?currency_pair=eth_usd', function (error,…
-
1
votes1
answer206
viewsJsonresult request with decimal type
Because when sending a request with a decimal type (3) the "Point" is deleted, see in the field INSS which is a decimal value, for example: I type 1,69 when making a bind in the template the stitch…
-
1
votes1
answer524
viewsDelphi xe8 Multi-device Json post
Good staff I would like to send data by json to a php server from Delphi, I tried to do this way: Delphi Cliente: procedure TForm7.Button7Click(Sender: TObject); var code : Integer; sResponse :…