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
answer59
viewsParse json with struct, error passing to array - Swift 4.0
I have an error with Swift 4.0 in parse Json, I am using struct Decodable to receive json, I am new in Swift I work with objective-c. struct dataInativa: Decodable { let dia_data:String }…
-
1
votes2
answers193
viewsCapture Json information using Python
I am working with the SWAPI API with Python and find the following difficulty: When I get the information from a Json, Dict is returned when I access the key search, I get a list, but I cannot get…
-
1
votes1
answer72
viewsConvert JSON String to an Object - Java Android
Hello, I’m getting the JSON string below, but I can’t put the values in the Class I created, all values are null. Any hint? JSON {"USDT":{"code":"USD", "codein":"BRLT", "name":"Dólar Turismo",…
-
1
votes0
answers54
viewsJsonserializationexception, Error converting JSON
I am trying to deserialize an object brought by my webApi, tested with other objects and works, but with this no The error is as follows: Jsonserializationexception: Unexpected JSON token when…
-
1
votes0
answers375
viewsTypeerror: Cannot read Property 'map' of Undefined
Hello, I’m starting with Act. I have the following structure import React, { Component } from "react"; class Dezena extends Component { render() { return ( <td className={ this.props.foiSorteada…
-
1
votes0
answers39
viewsonPostExecute is not receiving the result value (Android)
Good night, I am accessing via Asynctask JSON, only on onPostExecute, to String result is not receiving the result value. Follow Home access code.class String login =…
-
1
votes1
answer475
viewsWhat is the best way to clear your memory when using Lkjson in Delphi?
I’m having trouble wiping the memory data when I use Lkjson in Delphi. I tested using Freeandnil, Free, Destroy and Freeinstance. In some cases I get the following message when closing the…
-
1
votes1
answer2449
viewscom.google.gson.Jsonsyntaxexception: java.lang.Illegalstateexception: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
Hi, I’m new here and I’d like a hand. I happen to be developing a work of distributed systems in which the client is in Java and the server in Python. For there to be communication between the two,…
-
1
votes1
answer550
viewsCreate a JSON and add elements dynamically
I wanted to know how to create a JSON and then add elements dynamically. The initial JSON needs to be like this: { id: Lime.Guid(), type: "application/vnd.lime.collection+json", to:…
-
1
votes0
answers327
viewsError "Cannot send a content-body with this Verb-type"
Guys, I’m having trouble with the mistake "Cannot send a content-body with this Verb-type.". I’ve changed the method to POST, but the API only accepts if the given method is GET. I’ve tried to send…
-
1
votes1
answer196
viewssrc without image does not disappear
I am using the JSON database and I have a problem: when there is an image in JSON, instead of the tag <img> does not appear, it appears as if the image of that error: Is there any way when the…
-
1
votes1
answer369
viewsDeserializeobject
I’m trying to use the DeserializeObject, to generate objects through the result json: { "cod": "200", "message": 0.0068, "cnt": 40, "list": [ { "dt": 1560286800, "main": { "temp": 17.14, "temp_min":…
-
1
votes2
answers843
viewsSerialize JSON List in Flutter
I have an application in Fluter, and I have a return Json with List. I wanted to serialize the List to display it at a certain point, but I couldn’t find a way to do that. An example of my code:…
-
1
votes1
answer87
viewsI cannot access value of a JSON object and display it in the div
I’m running some tests with a file .json with the intention of implementing the code in my application (if I succeed in the tests). I am using the following json file. Follows the code: <!DOCTYPE…
-
1
votes1
answer179
viewsCreating Json File with PHP. Taking out last comma
I am creating a Json file, but I need to remove the last comma from the pad referring to the last record. This json will be used in Datatable { "data": [ <?php foreach ($rs as $row): ?> […
-
1
votes2
answers710
viewsError handling a JSON return in AJAX
It has been 3 days that I am searching in several sites of the network that deal with this subject a solution to my problem, but I am not able to discover the cause of it. I come to ask for help…
-
1
votes3
answers1381
viewsHow to declare an object parameter as null in C#
I have the following class in C# namespace Projeto.Models { public class Biblioteca { public int Id {get; set;} public string Nome {get; set;} public Livro Livro {get; set;} } public class Livro {…
-
1
votes2
answers88
viewsSend data by json with highcharts
I’m creating charts with highcharts in my project, but I’m struggling to send more than two values per json. I will now explain: Page where I send the data by json: $stmt = $conn->prepare(SELECT…
-
1
votes3
answers385
viewsCalculate values in sub array [PHP]
I have an array with items, and each with a sub-array where we have the values to be added, I’m trying to make each sub-array have its sum returned, and display the following result.. //Esse seria a…
-
1
votes1
answer261
viewsHow to write an Enum to the database with JPA and Postman
I am creating a product register, and when I pass through Postman the JSON of my product to be recorded, its type is being saved as NULL. The product types are an Enum, I will put down the code I…
-
1
votes1
answer413
viewsData processing in JSON format with Regex in Javascript
I have a problem in a project with PHP backend and front in HTML, Javascript and CSS. The backend is sending the data to the front through JSON, however, in one of the excerpts of the data there are…
-
1
votes1
answer243
viewsAngular 7 - mat-table with complex Json
Hi, I’m encountering problems in popular a mat-table with a Json that contains subitens. My API returns:…
-
1
votes0
answers35
viewsError loading image in application by Json request
I am developing an application that captures pictures sends to the server, the server saved in the database, and when the user wants, he can download these photos again on his mobile phone. Even the…
-
1
votes0
answers56
viewsByte[] to image conversion returning null
I am developing a mobile application that send photos of the application to the server, made in springboot. When receiving the request with the image, via json, I try to convert String to Image.…
-
1
votes2
answers139
views -
1
votes2
answers430
views"Value Below was evaluated just now" - React (Vibrantjs)
Hello, everyone. I’m using the library Vibrantjs passing an array of images and saving the return in the state of my component in React. As in the code snippet below. gerarPaleta = () => { let…
-
1
votes1
answer36
viewsHow to insert the error return into a specific part of html?
JAVASCRIPT $(document).ready(function(){ $('#parcelas').on('change', function(){ var parcela = this.value; var entrada = document.getElementsByName("entrada")[0].value; $("#bodyBoletos").html("");…
-
1
votes2
answers1184
viewsExtract object list from JSON
Good afternoon. I have an application that makes a request in my database and returns a json. This json contains a list of objects, which in my case are products, I’m having difficulty to rescue the…
-
1
votes1
answer123
viewsJsonproperty(Propertyname) does not recognize and assign values to the object
I’m creating a API, POST method, where the payload consists of 3 classes with the following structure: //Classe principal do payload public class Representante { [JsonProperty(PropertyName =…
-
1
votes3
answers652
viewsWeb API does not return JSON
made a web api c# where by default returns xml, tried from various internet methods turn this return to json but when I make a request keeps coming in xml, someone could help? method giving the…
-
1
votes1
answer162
viewsUse of "Return" in module.Exports
I am developing a project in Nodejs and at the moment, I am facing some problems when returning some value of a function within a module. Code: Archive for queries async function query(query){…
-
1
votes1
answer48
viewsHow to view a JSON file with dynamic key/value?
We have a JSON file that we will never know how many key/value will contain and need to display on the screen for the user, how to do this since I do not have the "key" example: In the 1st. call…
-
1
votes1
answer51
viewsJson how to present in a table
Good morning, I have a return in Json like this: { "dados": [ { "id": "1", "nome": "Geraldo", "login": "geraldo", "nivel": "1", "status": "1", "email": "[email protected]" }, { "id": "2", "nome":…
-
1
votes1
answer218
viewsError picking up input from a <form> with Mongoose/nodejs
Hello, I recently started learning Node.js and I’m using Mongoose to integrate with db 'mongodb', and in this application I’m trying to take data of 2 and insert this data into the database, I made…
-
1
votes2
answers82
viewsError when referencing an object’s value in another javascript object
I have the following variable with several objects inside: const dados = { estudouNaFaculdadeAno: { metricas: { ano: [], invalido: { num: 0, palavras: [] } } }, estudouNaFaculdadeCurso: { metricas:…
-
1
votes1
answer104
viewsC# Error When Deserialize Json for Object
I’m making a mistake when I take the return of a REST service and try to deserialize to a C object#. The REST Service returns me to the following structure(json): { "Marcacoes_Ponto_Response": {…
-
1
votes1
answer41
viewsFormat Python Query
I want to adjust my Python query so that I can correctly generate a chart in Chart.js. I have the following code for query and generation of json file def get(self, request, format=None):…
-
1
votes2
answers57
viewsPopulating dropdown with multilevel json
Gentlemen, I’d like some help. I need to popular a dropdown from a json file { "Categorias": [ { "categoria": "Automação", "subcategoria": ["supervisório", "programação", "servidor", "hardware"] },…
-
1
votes1
answer2105
viewsHow to convert the response to an Axios request with React-Native?
I have this class that works perfectly: import React, {Component} from 'react'; import Icon from 'react-native-vector-icons/FontAwesome'; import AsyncStorage from…
-
1
votes1
answer40
viewsProblem converting JSON to dataframe in R
I want to extract a JSON content from a website and convert it into a dataframe Website is https://schutz-shoes.com/products/amaia-sandal-metallic-leather?color=ouro%20gold Inside that site,…
-
1
votes2
answers115
viewsPut JSON API output in PHP variable
I am trying to use the following API: http://monitor.sacnr.com/api/? IP=137.74.179.193&Port=7777&Action=info The question is: how can I put the result of [Players] => 1 in a PHP variable?…
-
1
votes0
answers42
viewsError in Deserialize C#
By taking the information from my Json and trying to deserialize, the same error or displays 0, I have tried N methods, does anyone give me a light? I thank you from the outset, follow the code.…
-
1
votes2
answers98
viewsJson for List C#
I have this Json (Json 1) { "2": { "Data": "28/10/2019 12:50:26", "Id": 2, "Id_usuario": 0, "Latitude": -2, "Longitude": -52, "Portas": 8, "Status": "CHEIO" }, "5": { "Data": "28/10/2019 12:39:33",…
-
1
votes1
answer297
viewsPopular table at angle 8
Good morning, I am trying to popular a table on my system, because the backend done in spring sends me a JSON as follows, an object with several lists inside, example: { "contasDespesasQuitadas": […
-
1
votes1
answer47
viewsSend JSON to a variable outside the function
My knowledge is vague in this area, I need a little help! How do I get the result I received (JSON) and move to a variable. outside Function, I’m still learning. But easy to post code, I have a JS…
-
1
votes1
answer195
viewsFilter Json Using C#
I have this script in c# that makes me recover a token from an external api to mine that I am developing. Until then, I managed to recover without problems the parameters of this api (the token is…
-
1
votes1
answer64
viewsError picking up a json element with php
I have the following result in json: Array ( [0] => Array ( [LocalObservationDateTime] => 2019-11-12T19:20:00-03:00 [EpochTime] => 1573597200 [WeatherText] => Algumas nuvens…
-
1
votes2
answers781
viewsHow to make an object inside a JSON object in Java?
I’m trying to build the following JSON: { "movies": { "filme": [ { "id":1, "titulo":"Os Arquivos JSON ", }, { "id":2, "titulo":"Sexta-feira 13: JSON vive", } ] } } I’m wearing the bible org.json.…
-
1
votes1
answer185
viewsDisplay array of "children" according to array of "parents" (JS)
Assuming I have the following JSON, and want to turn this information into HTML components (in my case, I’m using React), what should I do? [ { "id": 1, "nome": "Pai1", "filhos": [ { "id": 1,…
-
1
votes0
answers38
viewsReturn a JSON table using Element creation (I cannot use Jquery)
Instead of returning the table in html, return in JSON and mount the table using the element creation (Document.createelement) and insertion and removal features of the DOM tree. I need a help with…