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
answer64
viewsInput AJAX parameters
I’m starting to learn AJAX and I’m having a simple doubt. I want to pass the value of an input but I’m having a mistake when performing the test. The Code is very simple so I will paste it complete.…
-
-1
votes2
answers584
viewsWhy is the Json_encode() PHP function not returning data in Json format?
Good Morning. After 2 full days researching I post my question: Why does the command echo json_encode($a); is returning an HTML page ? It is a registration where I have 1 foreign key, but the user…
-
-1
votes1
answer93
viewsError deleting a BD widget from a column
I’m trying to create a Postings in Node. A post can be created, shown or deleted. For this I created a table called posts with the following fields : table.string('category').notNullable()…
-
-1
votes2
answers91
viewsHow to access the elements of a String in Jason format in Javascript
I cannot print the values contained in a string in Jason format using Javascript in a modal containing multiple definition lists. I imagine it’s some syntax error in the access but I couldn’t solve…
-
-1
votes2
answers53
viewsAdd empty items at the end of array
This is what I need to do, and I’m not up to it. I have to create an array to generate a json output with 50 items for example, but if the database contains only 30 it completes the 50 items with…
-
-1
votes1
answer22
viewsDropdownlist Scading - Does not load the second dropdownlist
good night!!! I’m a total newbie on this Asp.net and I’d like some help from you guys. I got an example on the Internet of a waterfall dropdownlist. However, when I implemented it in my application…
-
-1
votes1
answer49
viewsMap 2 jsons and render in 1 card component + date formatting
I would like a help: I have two Json: posts and Author. Json posts returns right in the log. Each post has a respective author. It’s already showing the cards with the right post, but I also need to…
-
-1
votes2
answers81
viewsAlign data tbody with theady
I have data consumed by an API to popular a table in html, they are coming OK, but I’m not able to make the alignment between theady and tbody that populate at runtime, you could help me? She’s…
-
-1
votes1
answer408
viewsHow to take an array within another array using python
I am trying to pick up an array of coordinates within another array in JSON document format, but am having difficulties. This is the JSON document I’m using { "bairro": "Vila Mariana", "type":…
-
-1
votes1
answer27
viewsSingle Import - AJAX / Javascript
Hello, On my page, when loading a JSON it should be integrated into the file. This works. What I wanted is for him to do this import only once, if not he loads the same array as many times as I…
-
-1
votes2
answers102
viewsRecover JSON data via AJAX and PHP
Gentlemen, I’m setting up a system where he will consult an API and show the results within Divs. But I’m stopping this result, only by the console.log I’m not able to play inside the Divs. Follow…
-
-1
votes2
answers52
viewsHow to read the {1x2} JSON Jquery key
Gentlemen, excuse my ignorance but how can I read a JSON key that starts in number, example: "1x2": { "outright": false, "interwetten": { "odds": { "1": 6.4, "2": 1.55, "X": 3.95 }, "bookmaker":…
-
-1
votes1
answer17
viewsFilter files of the same date ? JS
Hello, I have an array with several objects I would like to know how to filter objects that have date equal to "02" for example: let arr = [ { name: "file0.xml", date: "02", size: "10823" }, { name:…
-
-1
votes1
answer481
viewsHow to return data in JSON format from a Webapi . net
I’m making a call inside the API to return consumer data, but I would like to know how to return this data to the client in JSON format. My controller: [System.Web.Http.HttpGet] public async…
-
-1
votes1
answer61
viewsAlert user about JSON response with empty return []
I am already more than 15 hours straight tried a simple solution but for me it is very difficult, please help me! I have a code that performs a query and when the input is incorrect the return is []…
-
-1
votes1
answer286
viewsView data from React Native API
Hi Dev’s I’m new in RN, I’m trying to show the return of a json, but I can’t access by the handle on the screen, only in the console. export default Function Functional() { const [date, setData] =…
-
-1
votes1
answer159
viewschatbot in Whatsapp
I’m creating a chatbot in wtsapp to return the elements of an array...only I need a line break... I’ve tried n nothing. it returns in different messages.. would like to have q line break in the same…
jsonasked 4 years, 4 months ago Alessandro Dias 1 -
-1
votes2
answers147
viewsQuery and display JSON data according to url parameter
Hello everyone, I really need your help!!! I need to display data from a Json on a page (< p >, < H1 > etc...), according to the url parameter. My Json is like this: { "outputName":…
-
-1
votes1
answer37
viewsbeginner who does not know how to request/BEGGINER TRYING TO REQUEST
I am doing a project where I need to access a user ID (the database is just an obj for now). however when trying to make a destructin: ---> const {id}= req.body; <--- let found= false;…
-
-1
votes1
answer42
viewsHow to recover ID in JQUERY
The goal is popular a select according to the previous select. Script <script> $(function () { $('#adms_grps_prod').change(function () { if ($(this).val()) { $('#adms_tps_prod').hide();…
-
-1
votes1
answer35
viewsEasyautocomplete does not find the searched value in the field
I’m making an order system and I need the field where the seller selects the customer to have the search option. I tried with the html datalist but the search didn’t work very well, so I’m trying to…
-
-1
votes1
answer30
viewsPull only user items
Talk personal, I have 1 database and data with 2 tables so far the first table is responsible for registering the users with the name "users", the other table is where I want to register the events…
-
-1
votes2
answers670
viewsFlutter Dart -> Capturing data from a class that receives json
Good guys? I’m a beginner in flutter, and I’m working on a ready-made template. In this template I have the class Category.Dart that receives the json values of service.Dart and so far everything is…
-
-1
votes1
answer690
viewsstring indices must be integers
I have a Json that returns this data: "errorCode": 0, "result": [ { "username": "Captain Samafa", "callsign": "24K", "latitude": 39.7100376616406, "longitude": 59.01369415537506, "altitude":…
-
-1
votes1
answer120
viewsSystem.Data.Sqlclient.Sqlexception: 'Incorrect syntax near 'messaging'. '
I tried everything, changed the codes, changed several things but the error prevails. Code: class Program { public static void Main(string[] args) { List<string> listaProcesso = new…
-
-1
votes2
answers45
viewsCheck empty PHP array
I made a push array, however, has an attribute that I should put only when it has some value or greater than zero. Normally the table takes the value it has, but it cannot be zeroed. If it is zeroed…
-
-1
votes1
answer81
viewsError mounting a Json via code
I’m trying to ride a Json in the following structure: "contatos":[{"contato":{"sequencia":"2046","codigo":"2046","nome":"teste…
-
-1
votes1
answer39
viewsVariables in JS Node
wanted to understand more the concept of variables in NODE. I tried to make a simple code to read a json from the internet. I created a variable to receive the name of the title, but after set, it…
-
-1
votes1
answer59
viewsHow to create HTML form elements with javascript button and functions? and then turn the data into JSON
I am creating a simple form where after completed will generate the content declaration of the post office and shipping labels automatically, but sometimes there are more than 1 product to be added…
-
-1
votes1
answer39
viewsHow do I do a 1-second while Sleep from a json value? PHP
Eai personal am new with PHP I did a CURL: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:5112/resultado/?id='.$id.''); curl_setopt($ch, CURLOPT_ENCODING, 1); curl_setopt($ch,…
-
-1
votes1
answer55
viewsPrint json in php with titles?
<?php $dadosJsonDecodificados = ("C:/pasta/arquivojson.json"); foreach($dadosJsonDecodificados->accountData $dadosBank){ $msg = ($dadosBank->accountBalance); } $str = implode("\n", $msg);…
-
-1
votes1
answer81
viewsReturn of the Curl call in PHP is not in JSON
Can anyone tell me why the data doesn’t return in a structured way? I need to get the data out of the api https://swapi.dev/api/people/ and I would like it to return in json format, but I have tried…
-
-1
votes2
answers25
viewsGenerate JSON from a form with equal names
I have the following list of inputs in a form: As you can see, each line has inputs with name static('idrequisica', 'idmaterial', etc) <form method='POST' id='envia_dados'…
-
-1
votes1
answer177
viewsHow do I add information to an existing json file using python?
I’m trying to create a function to save data in a json file in python and I can’t do it without the old data being overwritten by the new ones (I want the old ones to remain and the new ones to be…
-
-1
votes1
answer44
viewsConditional to capture JSON information via Pyhton
If anyone can help me.. I have a Python script that reads a file. json that contains the web services I need to interact with. At first, my json only needed to contain a service and the script works…
-
-1
votes1
answer89
viewsHow to parserar JSON from Response in Golang
Once again, I on this site. This time, I’m having a hard time parsing the API response I’m communicating with. The API in question is this one: https://api.brasil.io/v1/dataset/covid19/caso/data/?…
-
-1
votes1
answer85
viewsERROR DESERIALIZE JSON WITH C#
I’m getting error System.Invalidoperationexception: 'The 'project.classeCategories' type is not supported for deserialization of an array.' by deserialize JSON below: See how I’m getting JSON in C#:…
-
-1
votes1
answer56
viewsHow to take specific values and sets in JSON
I have the following JSON { "navigator.zoom.in": "Zoom +", "navigator.zoom.out": "Zoom -", "badge_name_BR263": "GAMES 6!", "badge_name_BR264": "4Anos", "badge_name_X2046": "Cabana Aconchegante",…
-
-1
votes2
answers43
viewsSelect a specific JSON array with Javascript
I created a script with Axios to resume a call, then the result: [ { FieldId: 8095, FieldName: 'Nome1', FieldValueIds: [ 12059 ], FieldValues: [ '9.000' ], IsFilter: true, FieldGroupId: 99,…
-
-1
votes1
answer24
viewsHow to get the Keys values of a Keyvaluepair c#object?
I have a Json with the following structure: { "Data" { "Request": [ { "text": "Minha Pergunta?", "response": "Minha resposta" } ] } } I do as follows to receive the values in the code:…
-
-1
votes1
answer33
viewsRepetition with Json in JS
Hello, I am new to programming and am learning to use JSON with JS. This is the JSON I’m using: { "USD": { "code": "USD", "codein": "BRL", "name": "Dólar Comercial", "high": "5.564", "low":…
-
-1
votes2
answers49
viewsHow to repeat div with json with dynamic content?
Right now I want to make a div have a JSON content. In this case, the first div has the "0" content of JSON, and that repeats itself in loop, until it reaches the maximum amount of items within…
-
-1
votes1
answer44
viewsSpecial characters returning in Json in PHP
I made an "api" to return the data in json format, however the record that contains accent, is displaying special characters. Look at my code, what I could do, there’s some command I can add? I…
-
-1
votes2
answers73
viewsC# Newtonsoft.Json - Add property during serialization
Hello! I’m trying to customize the serialization of a class using the Newtonsoft.Json. My intention is to add a property in JSON during the serialization of the object. Following the official…
-
-1
votes1
answer44
viewsHow to define JSON properties to use in a for loop?
I’m reading a JSON that looks like this: Google Books and trying to display it in HTML. The user’s search input is the seek which is received through the request.form.get down below: import requests…
-
-1
votes2
answers51
viewsTake json data from php with javascript
Hello, I’m trying to set up a dynamic chart with Charts.js, the data is in my database, returned this data in a decoded variable in json, which returns me the following:…
-
-1
votes1
answer29
viewsValue check within Object is not working
Hello, I have an API that returns to me: { "resultSetMetadata": { "count": 63, "offset": 0, "limit": 100 }, "results": [ { "receivableBillId": 2048, "installmentId": 1, "conditionTypeId": "AT",…
jsonasked 3 years, 4 months ago joaogalhardo 1 -
-1
votes2
answers15
viewsDRF/Django - How to send an attribute value instead of sending a JSON object
Hello, I have an object related to several others, however when I send the JSON, either goes the ID of the related objective or I serializo it and goes the whole object, I would like to send only…
-
-1
votes1
answer60
viewsError when serializing JSON in C#, apparently the API returns different structures depending on the object’s completion
I’m having problems returning a third party API (I don’t have access to the code) that I’m consuming, more specifically in the section below: var result = client.SendAsync(request).Result; var…
-
-1
votes0
answers21
viewsCreate a "like %" query from a JSON
Hello! I am basically a list of users of an external API and I need to process this data in my queries. I need to search by name as if I were doing a query in SQL but I am not able to handle the…