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
answer575
viewsHow do I display table data (HTML) from a database through JSON Express?
Hello! I would like to know a way to present to the user in an HTML table, data stored in a MYSQL Database with connection through JSON Express. const express = require('express'); const app =…
-
2
votes0
answers34
viewsLottie - toggle switch
I’m trying to set up a toggle switch in android studio using Lottie documentation. I got it, but this making a mistake, I need a little help guys. final boolean[] oontrole = {false}; final…
-
2
votes3
answers1406
viewsHandling JSON with JAVA
Through JAVA, I need to make a request via POST, where I will get a JSON with a token. The JSON return I get after sending the POST is this: { "Token": "e27bb0a7-e65b-4cc3-a82e-7a2a3c26a248",…
-
2
votes1
answer147
viewsAdd data in a single Json
Hello I’m having a problem and I’m having a hard time solving it.. Let’s go there I have 4 exactly equal JSON files with 22,000 product records, same parameters and everything, the only difference…
-
2
votes4
answers168
views -
2
votes1
answer144
viewsjsonarray adding and overwriting
I’m creating a game and I’m in the monster part and I need a json file to save the monsters but when I create a new monster it writes on top of what already exists as I arrange to just add a new…
-
2
votes1
answer2238
viewsWrite file in JSON
I have a number of files in JSON format, to work better organize them all in a single file using the following method: import json filename = "dados_geral.json" for mensagens in range(1,6):…
-
2
votes1
answer651
viewsError: C# The name 'Json' does not exist in the Current context
I have the following error in C# 'The name 'Json' does not exist in the Current context' in my application. I followed all the recommended steps by various websites, such as adding such references…
-
2
votes1
answer34
viewsProblem trying to use JSON values - Javascript
Well I have the following javascript code inside a function called query() that receives the value index of an input: var request = new XMLHttpRequest(); if (!request) { alert('Que pena :( a…
-
2
votes1
answer111
viewsReturn JSON saved in localStorage
I am trying to recover a JSON that I saved in localStorage, in function salvarOffline(). With the code as is the function listarHorarios() I get a undefined and the loop loop does not work. My code:…
-
2
votes1
answer10546
viewsHow to get objects from a Json array using Jsonarray in java?
I’m having a little difficulty getting information from an Array of Json, as it is giving the error: Exception in thread "main" json.org.Jsonexception: Jsonarray initial value should be a string or…
-
2
votes1
answer555
viewsPicking json object inside another object
I need to pick up the object "online" that is inside the object "players" more I can’t catch... I can only pick up objects that are "At the root" json where I need to pick up: { "status": true,…
-
2
votes3
answers929
viewsHow to build JSON with a list of stores separated by categories?
I do not have much intimacy with JSON and I need to create a structure that contains a list of stores separated by categories, where each store item has some information (name, floor, phone etc.) I…
-
2
votes3
answers1237
viewsHow to insert a new line in the json file, using PHP?
In the code snippet config.json, need that whenever you run a PHP script, it will insert a new line below, with the number in sequence and corresponding id: "assignment": { "0": "292", "1": "280",…
-
2
votes0
answers96
viewsHow to get data from json to php
I have the following webservice script, I can connect normally with the external host (code: 200) But in echo Responsebody nothing appears. How to show the obtained data? <?php $USER_NAME ="abc";…
-
2
votes1
answer503
viewsData return Json
I have this function to return the data in JSON, but I’m not able to make it work in MVC Core. public ActionResult SalvarItens(string HoraInicio, string HoraFim, bool Seg, bool Ter, bool Qua, bool…
-
2
votes2
answers179
viewsConsume Json and direct to a database using C#
I’m having trouble consuming a return json and convert it into object to then write in the database, my variables always return "null", I have tried several forms and always stay barred in this…
-
2
votes1
answer47
viewsGet json through ajax/javascript
I have a webservice developed in Java that is responsible for returning all the compositions of a particular fabric/piece (textile area). The webservice is first of all returning the existing…
-
2
votes1
answer58
viewsJSON for PHP + MYSQL
My client sent me this JSON so that I loop and record the data in Mysql. Only I’m not getting it because it’s different than what I usually do; Someone can give me some hint and what is the…
-
2
votes2
answers141
viewsHow to create a class and pass an attribute value in the class constructor in C#
Hello, I’m making an integration with the Tray Comerce API and thought to generate a generic class with the response of lists. In all listings, the API implements the following return class: public…
-
2
votes4
answers39
viewsKnowing which index of array values gives "match" with variable
I have two JSON arrays in Javascript and both are like this. First array: [""Amarelo"", ""Amarelo"", ""Amarelo"", ""Preto"", ""Preto"", ""Preto""] Second array: [""Pequeno"", ""Médio"", ""Grande"",…
-
2
votes2
answers76
viewsHandling of json in Jquery
I have the following one-page JSON return: { "0":{ "id_user":"10", "contente":"45454545454", "time":"azul", "nick":"ikeda." }, "1":{ "id_user":"10", "contente":"4", "time":"azul", "nick":"ikeda." },…
-
2
votes1
answer2142
viewsRead a value inside a complex JSON in C#
Good morning folks! I’m new to C# and I’m having a hard time picking up a value within a complex Json. This is Json: { "id": "58e50b82-50b1-4f29-a2e8-a9a544013255", "timestamp":…
-
2
votes1
answer64
viewsNullpointerexception when reading Jsonarray passing String
This is my code, which gets a JSON format string from the url https://servicodados.ibge.gov.br/api/v1/localidades/estados When extracting data according to this class/method public class…
-
2
votes4
answers4547
viewsHow to Merge 2 or more Json Objects into Only 1
How can I unite two or plus Objects in Json so that you’re just one object Json, but this, containing all the unified data? How this union could be made? Example below: Obj 1 […
-
2
votes1
answer109
viewshow to concatenate an object into asynchronous function?
Hello I am developing a site to train a little js, but I came across the following situation: I have a javascript object that I created to facilitate the Ajax queries, but when I am making the…
-
2
votes1
answer345
viewsRelationship between Rest Resources with Spring boot
I’m learning Spring Boot Rest and with a doubt I can’t solve on my own, you could help me? I created the following mapping between Launch and Person entities: Entidade Pessoa: @Entity public class…
-
2
votes1
answer173
viewsHow to include JSON file inside a . JS
I already searched here on the forum, I got ready examples on other sites, but no one helped me. As it says in the title, I’m not managing to make this link from a file .json into the archive .js.…
-
2
votes1
answer156
viewsJsonconvert.Deserializeobject returns null
Segue json: [ { "id":"BKA-EU8IED8ZD21Q", "agencyNumber":"1", "accountNumber":"1", "holder":{ "thirdParty":false, "taxDocument":{ "number":"783.121.360-02", "type":"CPF" }, "fullname":"Leandro da…
-
2
votes0
answers691
viewsUncaught Syntaxerror: Unexpected token <
I’m consuming data returned from a Web Service JSON, in which I travel array columns, for compare values between Urls and if equal, by its name. We have names of teams, locations, categories and…
-
2
votes1
answer145
viewsGenerate a new JSON by manipulating data from another JSON
I was participating in an internship test and I was proposed the following problem: I would have to read the JSON below: [ { "nome":"Jabba, the Hutt", "jedi":false, "sistemas":[ "Tatooine" ] }, {…
-
2
votes1
answer37
viewsAlternative connection to Webservice
good afternoon! I have the following function: function API($conteudoAEnviar) { try{ $cabecalho = array( 'Content-Type: application/json', 'Authorization: Basic ' .…
-
2
votes1
answer199
viewsHow to get all 'Yamldotnet' values in 'File.yml'?
I’m working on a.yml file and I want to get all the values it contains in that file. I’m using the reference Yamldotnet.Serialization. What I want to do is take a certain value and display the…
-
2
votes1
answer364
viewsHow to filter tweets (status) with tweepy (Cursor)
I took from the book "Mastering social media Mining with python" the code below, which saves all a user’s tweets in JSON format. But I would like you to save in json only tweets of a certain date.…
-
2
votes1
answer166
viewsLambda function for Dict Dict - Python
I would like to know if there is the possibility of using the filter with a function lambda to select a conjunto de dados of a array de J SON in the Python. Example: I have the following JSON…
-
2
votes1
answer170
viewsDesirializing complex json
I’m new around here and I’d like your help, I need to deserialize a json, to use in an Xamarin Forms application and I’m having difficulties, how to proceed in c#? follow the json below { "RECORDS":…
jsonasked 6 years, 1 month ago Flávio June 21 -
2
votes3
answers148
viewsTransform Jsonarray into Class Object
I am consuming an API in my application that returns me an array of names, I created a class to assign each name to 1 instance but I am having problems to take this Jsonarray and transform into…
-
2
votes2
answers58
viewsExchange array data between’S' and 'N'
I have a function that I will adapt to a button, which will exchange a data within an array, between S and N. The code I have is: var array =…
-
2
votes1
answer138
viewsPrint json data list
I need to take the data of a json file and with this data generate a list corresponding to the category it belongs to for example if it is of the technology category need to generate a list of all…
-
2
votes0
answers169
viewsDynamically generate JSON from android form
Context: I have a Cordova app that there are SUS forms with more than 30 fields that is sent to the server through JSON. I’m building a native android APP for the same function; Problem: Need to map…
-
2
votes1
answer839
viewsHow to call a modal in the View from the Controller Actionresult
To call a modal from the Controller’s Actionresult, after the user clicks the button to register? The controller is currently redirecting to the index page after the user registers. I want instead…
-
2
votes0
answers321
viewsHow to Make Multiple Threads in a Java Loop
Description of the Problem I’m making a Pokedex, in which one of its features is to filter all the Pokemons of a certain type. I managed to implement this functionality, but the execution time is…
-
2
votes0
answers54
viewsReading a JSON by http in Angularjs does not work
Hello I’m trying to read a JSON via http using Angularjs (I must use Angularjs) and I can’t even display the first JSON data because it doesn’t have a string that I can call in Function(Answer) in…
-
2
votes1
answer56
viewsProblem when deserialize json with $
Follows code json: { "_id": { "$oid": "5b0f4a926724c71d945299f9" }, "_class": "notificador.domain.entity.mongodb.WebhookNotification", "externalId": "EVE-XXXXXXXXXXXX", "resourceId":…
-
2
votes1
answer188
viewsUse select data in input
I have a code that selects an option of the data coming from the database. This part of the code is ok, it selects and brings. The problem is that by selecting this option, need to fill 4 fields…
-
2
votes1
answer128
viewsproblems with (array) object
I have a array of objects. Ex.: $array = array (1=$obj1, 2=$obj2...ect) Turns out I’m converting these objects in arrays also to have a array of arrays instead of a object array for the purpose of…
-
2
votes2
answers1446
viewsJSON PARSE returning 'Object Object'
I would like to know what is wrong with my job, because in allocating obj = data, the same sage object object, the date value is a JSON returned by the WEBSERVICE. Date value: [{"descricao":"Lorem…
-
2
votes1
answer97
viewserror when receiving JSON from url
Following the answer given to the question: Android: read JSON data Which is exactly the same problem as mine, I arrived in class: package com.example.carlos.radiosingular.classes; import…
-
2
votes1
answer109
viewsPrint specified JSON value
I am creating an application whose one of the returns comes from an API (return in JSON), and I need to collect the value of the key 'text' but when I return this way: data = json.dumps(response)…
-
2
votes2
answers787
viewsHow to select the logUser attribute only on the main JSON object using Regex
I need to select the attribute logUser only in the JSON main object if it comes with value or null. Ex: logUser: 100 | logUser: null { "id": 1, "numeracao": "001", "logUser": 100, "permissionario":…