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
votes2
answers162
viewsError while capturing JSON field?
I’m making a mistake when I’m trying to reclaim a field of one array. Follows the json: { "data": { "messages": [ { "id": 1, "sender": "[email protected]", "recipient":…
-
3
votes1
answer332
viewsBeginner with firebase
I want to implement firebase in my app (Ionic). When I test a message: Unknown Provider: $firebaseArrayProvider <- $firebaseArray <- Loginctrl Should I declare my firebase settings in the…
-
3
votes3
answers1826
viewsObject search/registration via REST url and registration with SPRING
I’m new to REST and Spring. I am doing an exercise where I have to search a client via url and return (GET) it in JSON format and insert(POST) a client in JSON format. To search for sera in the…
-
3
votes2
answers694
viewsFullcalendar: chmar an external Json file
Good afternoon, I am trying to upload an event to Fullcalendar. The problem is this $(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'today', center: 'prev, title, next',…
-
3
votes2
answers514
viewsHow to return a pure Json (without XML encapsulation) using webservice in c#
I’m with a webservice running locally, which conducts queries directly in a database through a string type parameter. Follow the outcome of the consultation: The second moment I have an application…
-
3
votes1
answer340
viewsHow to view a list from a Json sub-array?
I’m building Ivs dynamically via Javascript. I want to make its content display some information (usernames, emails, etc). The data is coming from the database in Json format. The problem is that it…
-
3
votes1
answer146
viewsIs it possible to add a Function to a json?
Let’s get to the problem. In datatable.js, to display the columns I define as follows: "aoColumns": [ { "mDataProp": "IdProcesso", "sTitle": "Numero" } ] If you need to perform some function: {…
-
3
votes1
answer131
viewsJSON with value - Null App List
I am creating an App, where it will present some information from an external database using a JSON file so that I can present this information in the App. However when I run the code, the list in…
-
3
votes1
answer249
viewsGrab Dynamic Element in JSON
I have the following json { "error": false, "installments": { "visa": [{ "quantity": 1, "installmentAmount": 500.00, "totalAmount": 500.00, "interestFree": true }, { "quantity": 2,…
-
3
votes2
answers134
viewsCheck ip, register in array, convert to json and write to file
Guys, I’m having a problem. I have a php script that opens a json file, decodes it with json_decode and then checks if the json object has the current visitor’s ip, if it’s left behind, but, if it…
-
3
votes2
answers743
viewsExtract arrays and objects from JSON returned with jQuery
I’m making a request on a web service using jQuery this way: var dados = jQuery( this ).serialize(); jQuery.ajax({ type: "POST", url: "http://meusite.com/test", data: dados, success: function( data…
-
3
votes1
answer851
viewsHow to pick up a specific piece of information within a Json with Node.JS?
{ "pair": "BTCBRL", "bids": [ [2257.89, 0.20752212, 90852987], [2257.88, 1.01201126, 90800395], [2249.98, 0.05052466, 90806289] ], "asks": [ [2272.14, 2.3648572, 90803493], [2279.63, 0.08722052,…
-
3
votes2
answers1013
viewsHow to write data from a form to a database by converting the fields to JSON?
I have any form, example: <form action="confi.php" method="post" enctype="multipart/form-data"> <p><input type="text" name="nome" value="nome"> <p><input type="text"…
-
3
votes1
answer106
viewsLink a JSON parameter to a product in Woocommerce
I have a JSON that returns me a list with some flight data: "programa": "multiplus", "qtdOpcoesIda": 50, "qtdOpcoesVolta": 50, "menorTarifa": { "pontos": 15000, "dinheiro": 767.8 }, "taxaEmbarque":…
-
3
votes2
answers289
viewsValidate max_size on an input type="file" with JS
Well, I’m trying to validate max_size on js, but since I don’t understand much, I was only able to validate the accepted formats (jpg, png, etc...) <input type="file" name="photo" id="photo"…
jsonasked 7 years, 8 months ago Felipe Silva 43 -
3
votes2
answers1323
viewsSort items with angular
I am working on a system that requires data pagination, but before I would like to sort the json I receive in the order of users' names. JSON is in format:…
-
3
votes1
answer306
viewsProblems when defining url string whose query string parameter contains the dollar ($) character
I am using a WS API in JSON that the URL is https://api.movidesk.com/public/v1/persons?token=52ee6ca5-8639-422b-bafe-470013c11176&$filter=profileType eq 2 which is the example in which the API…
-
3
votes1
answer273
viewsError while uploading a Nodejs application to Heroku
While performing the eating: git push heroku master LOG: -----> Node.js app detected parse error: Unfinished string ! Unable to parse package.json -----> Build failed We're sorry this build is…
-
3
votes1
answer4234
viewsretrofit - How to send a JSON via POST
Talk guys, I’m using Retrofit 2 and I’m not getting JSON to WS. I have here my class that tidies up the json the way I need it: Customgsonadapter public class CustomGsonAdapter { public static class…
-
3
votes1
answer256
viewsSend id by URL to full Legend
I use Full Calendar to display an agenda on my system, but I’m not able to send a id through the url of the file that mounts the json with the dates, and need this to filter the events that are…
-
3
votes2
answers3800
viewsLong or Date in JSON
Applications, one server and several customers, POST and GET to the server exchange objects JSON. One of the variables that goes along with the JSON is the datahora atual, see different Strings to…
-
3
votes1
answer98
viewsMount Query to last Google Datastore record
I’m working with the Datastore from Google and I’m unable to mount a Query to return what I need. Situation I have a Entity, keyed {"item": codItem, "item": id}, still within that Entity I have the…
-
3
votes1
answer283
viewsFullcalendar does not display the event according to schedule
I’m working on a project with Fullcalendar, and I’m not being able to show the events correctly in their respective schedules. I feed the calendar with a Json (PHP system): [ { "id":"13",…
-
3
votes0
answers817
viewsVariable me returning Undefined which is assigned inside subscribe
In the code below, the variable date is returning me Undefined, now if I put console.log(this.data); inside subscribe returns me with the correct value. import { Component, OnInit } from…
-
3
votes2
answers501
viewsHow to traverse a hierarchical tree to generate an HTML
I’m having trouble generating a function responsible for traversing and returning a hierarchical tree. Follow code Javasript/JSON: let tree = { label: 'Elemento A', itens: [ { label: 'Elemento A1',…
-
3
votes1
answer226
viewsDownload data in JSON
[ { "ID": 1, "ano": 5 } ] I don’t know how to get in JSON the value of each of the fields, in this case "1" and "5", as shown above. In obtaining the data in JSON I tried to follow some tips that I…
-
3
votes2
answers1580
viewsConvert utf-8 codes to Unicode
Well, I have a file JSON where all the symbols Unicode as this " " are in this format: "u2605" has some way to convert these codes to the symbols when my program Nodejs read the JSON? Example of how…
-
3
votes1
answer2605
viewsTake data from a json file by the url (javascript)
I wonder if it is possible to take the data of this json (http://destiny.trade/JSON/sortieRewards_f.json) without lowering it. Currently I can get the data from it, but I would like to go through…
-
3
votes1
answer91
viewsHow to call the id of the previous select
I have two selects, one for division and the other for groups. When the division is selected it has to bring in the second only the groups that are part of that division. In the url variable that…
-
3
votes1
answer1037
viewsDoubt when deserializing JSON C#objects
I am deserializing the JSON below, and would like to know, if I need to create a class with all attributes related to this JSON, or can I just create with the attributes I need to use? Am I going…
-
3
votes2
answers893
viewsHow to remove part of a JSON file
I need to remove parts of a JSON, but I don’t know how to do it I’m converting the same to CSV, and when I convert the structure gets all weird Follow print explaining better, what is marked in…
-
3
votes2
answers58
viewsReturning linked data
With the help of Milrak Pereira Pessoa and Wéllingthon M. de Souza, I edited my code... I have a product code and it has 5 types and 5 descriptions. I am trying to bring to the user the types and…
-
3
votes1
answer735
views -
3
votes1
answer82
viewsHow to improve this code
A few days ago I asked for help here in the OS to parse JSON in Java and I got what I wanted, however, I had to do a "gambiarra" by not knowing a better way. It’s working, but I’m sure the code can…
-
3
votes3
answers605
viewsSave a JSON file inside square brackets and separated by comma
I’m trying to save a file dados.json, where the form data is sent via POST to a file dados.php by AJAX. The code of dados.php is as follows: $array = array(); $fp = fopen("dados.json", "a");…
-
3
votes1
answer2324
viewsPopular Clientdataset with JSON truncates the data in 255 characters
I am trying to pass a JSON to a Tclientdataset using the following function: procedure JsonToDataset(aDataset : TDataSet; aJSON : string); var JObj: TJSONObject; JArr: TJSONArray; vConv :…
-
3
votes1
answer12121
viewsPostasync Json C#
I have the Following class set: public class Ticket { public string name public string content public int itilcategories_id } And the following code sample: static HttpClient client = new…
-
3
votes1
answer14930
viewsUncaught Syntaxerror: Unexpected token u in JSON at position 0
In my html I am using Javascript to try to recover a Json object saved in localStorage. I am using Google Chrome. First I get the value of the "name" attribute of my Json object that is in…
-
3
votes2
answers101
views -
3
votes2
answers157
viewsHow to create a property on an existing object of an http request?
I’m trying exhaustively to put a property on an object that comes from a request (JSON), but I’m not getting it, it’s like it just doesn’t, but when I do a console.log, there it is, but it’s not…
-
3
votes1
answer94
viewsJSON Return to JAVA Class Conversion Error
I have a java class public class PRODUTO extends SugarRecord implements Parcelable { private float id_pro; public PRODUTO(float id_pro){ this.id_pro = id_pro; } public float getId_pro() { return…
-
3
votes3
answers900
viewshow to find a string for json
I have a string in json format. In this way: {"IdLead":4186960,"Concessionaria":"Mila - Centro","DadosQualificacao":{"IdEvento":79654,"Qualificacao":1,"Motivo":6,"DescricaoMotivo":"motivo…
-
3
votes1
answer71
viewsCookie returning duplicate value
I am cookie saving an object in JSON format. In the properties of this object I have links with several parameters. With each link change, I update the cookie with the new value. Example of the…
-
3
votes1
answer144
viewsAjax function for MVC controller
I have this function with array and I’m not getting through to the controller values, i listing, it appears correctly, use angular. $scope.addItem = function (user) { $scope.items.push({ de:…
-
3
votes1
answer155
viewsRetrieve data via JSON by URL in C#
I need to get data via JSON, through a URL, this link: https://cryptohub.online/api/market/ticker/egx/ I’m trying with the code below, but I already get error as soon as it downloads the string. The…
-
3
votes2
answers784
viewsProblem accessing Json API with React
I am trying to access the following variable in the Json of an API: page[0].infoBloco[0].tabela[0].dados[0].fonte.nome I’m getting the bug: TypeError: this.state.page[0] is undefined[Learn More]…
-
3
votes1
answer800
viewsHow to convert JSON to Object and find an id - JAVA
I need to convert a JSON into an object and navigate to an ID and capture only it. JSON Example:…
-
3
votes1
answer40
viewsJava: Convert point-delimited strings to nested JSON
I have a lot of attributes coming as point-delimited strings like "company.id", "company.address.number", "user.name", "isAtive", and I need to create a nested JSON with its respective values. These…
-
3
votes1
answer328
viewsHow to validate the JSON schema in C#?
Follows json (has only 1 error, may have several errors): { "errors": [ { "code": "XX-55", "path": "customer.id", "description": "Cliente não encontrado" } ] } Another example of the return:…
-
3
votes1
answer646
viewsGet the image of a Json
Good morning! I’m new in javascript and I’m trying to put the image of a JSON of Bing site and put in my body but I’m not getting returns the following error: Failed to load…