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
votes0
answers12
viewspage keeps giving Reload every time and Fetch function is executed
const form = document.getElementById('form') form.addEventListener('submit', function (e) { e.preventDefault(); const firsName = document.getElementById('firstname') const lastName =…
-
-1
votes1
answer34
viewsRender JSON Django field
I am doing a project using Django 3.1.2, this project needs a log. I created a template for logs: class Log(models.Model): Usuario = models.CharField('Usuário que fez a ação', max_length=100) Perfil…
-
-1
votes0
answers20
viewsPossible Unhandled Promise Rejection (id: 0): Syntaxerror: JSON Parse error: Unrecognized token '<'
I’m developing an app and I need to log in. I have an API on two different servers. a return me: Possible Unhandled Promise Rejection (id: 0): SyntaxError: JSON Parse error: Unrecognized token…
-
-1
votes0
answers19
viewsI can’t get specific data from the Json API using Next with React js
I am using this API https://akabab.github.io/superhero-api/api/ and I can even get the data of all the characters with the call https://akabab.github.io/superhero-api/api/all.json, but when I make a…
-
-1
votes1
answer22
viewsLaravel - json_encode() does not work
Bring to Laravel in array format. [compacto] =>…
-
-1
votes0
answers25
viewsHow to pass SELECT output to JSON?
I need to take the result of a query in the Database (made by a select), and insert it into a JSON file to receive the JSON file in Javascript and manipulate the data. I tried something like:…
-
-2
votes1
answer118
viewsBest Framework for JSON
I’m with a project for android and need a framework to exchange information via webservice.
-
-2
votes1
answer436
viewsHow to get the value of an Odata JSON object and convert to string?
After accessing the WCF, I get the following answer: { "odata.metadata": "http://luiz-note64/WcfOper/WcfOperDataService.svc/$metadata#Operacoes&$select=IdOperacao", "value": [ { "IdOperacao":…
-
-2
votes1
answer109
viewsApp is closing, while consuming webservice
I have a problem in my application, when consuming a web service in Json, the application is closing. The idea of my application is I consume this web service to validate my email and password, and…
-
-2
votes1
answer720
viewsHow to consume Json on Android?
How do I consume a Json on Android?
-
-2
votes1
answer867
viewsReturn of Json
I still don’t understand how JSON works, but here I have a Controller code that returns a JSON and I want to know how to display this data on the screen. public ActionResult ShowPlaylists() { if…
-
-2
votes1
answer62
viewsProblem picking up a GSON variable
I’m making an app that uses the google maps Directions api, which returns me a json, for example: { "geocoded_waypoints" : [ { "geocoder_status" : "OK", "place_id" : "ChIJeRLP8gx3GZURImtwaSWGJgY",…
-
-2
votes1
answer145
viewsJava and JSON API
I wonder if anyone knows a good API and tutorials to create, edit, write and read JSON files in Java. I’ve been researching for some time and so far I haven’t found.
-
-2
votes2
answers837
viewsHow does a Json object return?
I just modified an example of HTML with Json but it is an array type and apparently what I want to use is an object, I believe this is the problem. json contains this information:…
-
-2
votes1
answer85
viewsQuery with return JSON
What is the most practical and safe way to provide an EXTERNAL query to my database and return a JSON? PHP
-
-2
votes1
answer37
viewsPrint Json PHP Variable
I have a json $data= '[ { "opa": "maam", "clik": "7026981995", "pt": 123, "aaab": [{ "ttt": "1.22", "tt": [{ "aaa2": 1.2277, "aaa122": 19811225 }] }] }, { "opaa": "maam1", "clik1": "7026981995",…
-
-2
votes1
answer400
viewsHow to extract only JSON values by removing keys
I have an array with some ids, the return object of my request to Webservice is as shown in code snippet number 1. I wanted to know if you have any way via jQuery, to extract only the values and…
-
-2
votes1
answer83
viewsCreation of JSON with numeral
I would like to create a JSON like this (this is only a part), I always create the object with the value, but I can’t do it this way using the 200 as an object: path.get.response = new Object()…
-
-2
votes1
answer123
viewsConvert Encoding to JSON
Boa Tarde Galera, I have a question, I have a file in JSON, which is with some unidentifiable characters, is there any method for me to set the encoding of it in UFT-8? Because I need to play this…
-
-2
votes2
answers1113
viewsIs it possible to generate a JSON file with Javascript?
I had done a PHP project that dealt with JSON data, where I could create new files with data or overwrite existing ones. Now I want to redo the project using Javascript, however I did not find any…
-
-2
votes1
answer95
viewsHelp with Json and Python
So I’m doing a script on python to the Python-Nmap and I have a file Json where I store information such as default ip and default port and I created in the options menu and an option to change the…
-
-2
votes1
answer184
viewsRemove value quotes in Jsonobject on Android
In my Android project I need to generate the following Json result: {"value":164.40} However, how to remove the quotes from the String result? JSONObject json = new JSONObject(); json.put("value",…
-
-2
votes1
answer119
viewsHow to clear div when input is empty with jquery-json autocomplete?
I have this code that is not mine, I do not know javascript, but I need this functionality, it is working right, as I type it will autocomplete creating li, with image and text with json, but when I…
-
-2
votes1
answer189
viewsLoad from Database only when all is loaded
In the Portfolio section, when pressing + load, you can see that first loads the block and then the images with a delay of 1 second. SEE ON SITE: somospixel.com/test I only want it to load when the…
-
-2
votes1
answer28
viewserror correction
Can anyone help me solve these three mistakes? I’ve already had the solution search on the net but I am told to do so and I do not know why it is giving error.…
-
-2
votes1
answer194
viewsSearch by API / JSON - Latam and Gol (Power BI)
Good Morning! Guys, I’m riding a Dashboard on Power BI, and I need to link it to the Gollog and Latam load tracking site. I already have the link to search the web service, but I do not know how to…
-
-2
votes2
answers59
viewsConvert a date from C# (Datetime), which has been transformed JSON, to Javascript Date
When I perform a data search in C#, it returns the DateTime in format "/Date(123456789)/", but I can’t convert to a valid Javascript date. As a: var data = new Date("/Date(123456789)/"); Or: var…
-
-2
votes1
answer79
viewsJSON Spacing Key, "." and Main Letter
Hello people, I would like to know how I can get the values of HP, Sp. Attack and Sp. Defense in Javascript?? the values below work but the quoted ones do not =[…
-
-2
votes1
answer21
viewsSelect in nested jsonb - postgresql
I had difficulty finding the values on a basis, as all examples cite the same way to find information in simple jsons. But a friend from work passed me and solution and I came to share. the initial…
-
-2
votes1
answer44
viewsAccess JSON values with PHP
I have the following API: https://proxycheck.io/v2/42.131.121.100?vpn=1&asn=1 { "status": "ok", "42.131.121.100": { "continent": "Asia", "country": "China", "isocode": "CN", "latitude": 34.7732,…
-
-2
votes1
answer45
viewsHow to show a specific array that is in a JSON?
{ "id": "1", "addresses": [ { "num": "1" "addressType": "Comercial", "country": "Brasil", "postalCode": "89035200", }, { "num": "3" "addressType": "Comercial", "country": "Brasil", "postalCode":…
-
-2
votes5
answers120
viewsMerging an array with an object array
let apis = [{id: "1", name"api 1"}, {id: "2", name:"api 2"}, {id: "3", name:"api 3"}]; let applications = [{id: "1", name:"application 01", apis: ["1", "2"]}, {id: "2", name: "application 02", apis:…
-
-2
votes1
answer47
viewsGET STR syntax
answer from the JSON: "tipoLogradouro": "AVENIDA", "logradouro": "DOIS", "numero": "185", PHP to collect the answer $tipolograd= GetStr($data, 'tipoLogradouro":' '",'); $lograd= GetStr($data,…
-
-2
votes1
answer47
viewsdoubt with json
I have a json, in my form I have a button "Proximo" and "Anterior", I need to create a code that shows the next or previous record, as I click the buttons, I am using angular, someone could give a…
-
-2
votes1
answer983
viewsRecover JSON in PHP
I saw many forums but still not solved for me HTML <div class="form-group col-xs-12 col-sm-5 col-md-6 col-lg-6"> <label for="banco">Banco</label> <select id="banco"…
-
-2
votes2
answers1669
viewsConvert string to JSON
I got the following object: 1,2,3,4,5,6 I would like to convert it to JSON to recover in php to perform a for loop: {"id":"1"} {"id":"2"} {"id":"3"} {"id":"4"} {"id":"5"} {"id":"6"} I take this…
-
-2
votes3
answers575
viewsEPSON non fiscal thermal printer does not work in a shared way with USB and LPT
I am creating a system in PHP and we are entering the printing phase with non tax thermal printers. In principle I did not find Epson support for PHP printing and in researches I found the component…
-
-2
votes2
answers105
viewsphp array for json will not all data
Hi, I’m having a problem with my code and I wanted your help. I need to take data from a table and send it as json, I have 10 items in my table but json only sends one. Table: local In my code where…
-
-2
votes1
answer103
viewsArray reading with JSON
I have the following array: Array ( [xml] => { "orders": [ { "code":"PedidoTeste-1508156986545", "channel":"PedidoTeste", "placed_at":"2017-10-16T10:29:46-02:00",…
-
-2
votes1
answer419
viewsHow to return a list of a json?
It follows result: {"response":{"numFound":2654,"start":0,"docs":[{"id":"l3ade68b8g5db3b0b3","langID":1,"url":"/ministerio-codigo-de-honra/quao-grande.html","title":"Quão…
-
-2
votes1
answer54
viewsPHP returning json as string
I’m returning this one JSON using PHP but the object genre and cast is being returned as string { "id":"5", "title":"A Era do Gelo", "year":"2002", "age":"0", "time":"81", "genre":"[{\"id\": 16,…
-
-2
votes3
answers2992
viewsHow to convert HTML to JSON?
I have the following script: function abreJanela(URL) { location.href = URL; // se for popup utiliza o window.open } <select name="paginas" onchange="javascript: abreJanela(this.value)">…
-
-2
votes2
answers668
viewsI can’t parse json with brackets in c#
I am using the Newtonsoft.Json.Linq library to parse json in c#. Until now it worked beauty, when I have a string json like this: { 'chave':'valor' } But when I have a json like this: [ {…
-
-2
votes1
answer329
viewsGet into Webclient by passing json as parameter
I’m doing the requisition this way, but I’m not succeeding , someone who’s been through it? private static String vwsApiUrl = "http://vws.veloxtickets.com:82/wscinema.ws/Get_Cinema_Programacao";…
-
-2
votes1
answer257
viewsAngular with JSON + Typescript
Should I read a JSON and print the results inside a dynamically angled HTML. The site would be a kind of chat where I have tags with dynamic DATABIDING, within the <ul class="list-group row">…
-
-2
votes1
answer168
viewsmake a search between two data php html mysql
I need help with a search between two dates.... I am entering an initial date and a final , but I need to return the result on another page .... however my return is always from the customer…
-
-2
votes1
answer9093
viewsHow to resolve Syntaxerror error: Unexpected token E in JSON at position 1
I’m trying to make a simple registration but I’m getting an error message: Syntaxerror: Unexpected token E in JSON at position 1 I could not solve, the script is thus configured:…
-
-2
votes1
answer43
viewsDeserialization Gson X Android
I am unable to pass the value of the JSON string to an entity (OBJECT). I’ve already managed to receive JSON, and code 200 success. But I can’t put that value on the object (Deserialization). if…
-
-2
votes1
answer28
viewsResponse Em Restfull
Good evening, I’m new to Webservice and I have the following question, how do I make a response to the class created in java? So far I’ve done it in my code: package alarme; import…
-
-2
votes1
answer207
viewsSort Map<String, Map<String, Map<String, Long>>
Hi, I did a search but I couldn’t find this sort of sorting by the last value of this Map. I need to order a Map<String, Map<String, Map<String, Long>>> for the last Long value, to…