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
answers668
viewsSign json parameters with digital certificate C#
I’m trying to integrate with a webservice, which requires the message to be encrypted to PKS7 standard, but when I try to digitally sign the message, I’m getting this error: Exception: The provider…
-
1
votes2
answers2038
viewsWork with JSON for request and Java Sponse
I need to consume a WS with Rest that is already almost complete, only 2 things to finish: - mount the request JSON and manipulate the Response JSON. Here’s an example of the template I need to…
-
1
votes3
answers333
viewsHelp to filter a JSON with jQuery?
I have this code that filters a JSON object: var filtrar = function (horamin, horamax) { var data = JSON.parse(JSON.stringify(json.aPesquisa)); let result = data.filter(item => { let voos =…
-
1
votes1
answer1189
viewsReturn Curl with JSON
Good morning, I’m trying to return this code in JSON, I just want some specific fields ex: Operator, type, portability and status. <?php //header('Content-type: application/json'); $post = ['tel'…
-
1
votes1
answer414
viewsDeserialize JSON with Restsharp and Javascriptserializer
I am having difficulty deserializar a JSON. I am receiving the following content: "response":{ "account":{ "name":"Evandro Teste", "owners":[], "creationDate":"2017-07-07T07:18PDT",…
-
1
votes0
answers32
viewshelp on github
Hello, I’m still a baby in the programming universe and this is my first interaction with stackoverflow, so please if I do something stupid please help me. link to the github: Project Recicla Óleo I…
-
1
votes0
answers45
viewsRead response in json via a fetch with service-worker
I am implementing a web notification system, using service-worker and other components, in Asp.net MVC. 1° I already have my worker registered and started on the system. 2° I can display…
-
1
votes1
answer314
viewsGet Google query Json with Webbrowser C#
I need to perform the following process, perform a google search and get the search information in Json format, how could I do this? I tried to do it this way, I used Webbrowser from C# and I…
-
1
votes2
answers362
viewsDisplay name in input using autocomplete
The autocomplete is working correctly, I get the following json: [{"label":"Jorge Valdivia","value":"16"},{"label":"Vinicius Aquino","value":"15"}] The problem is that when I select an option, the…
-
1
votes1
answer3070
viewsCreate Json for PHP based on Mysql
I wonder if anyone finds any error in my code because I’m trying to create a Json with PHP but it only returns NULL. My Host server uses PHP 5.6 <?PHP $host = "..."; $usuario = "..."; $senha =…
-
1
votes1
answer1602
viewsList Json Data with Angular 2
whereas I have a Json coming from a Url ('https://api.site.com.br/v1/servicos'). I created a service to pick up this object: import { Injectable } from '@angular/core'; import { Http, Response,…
-
1
votes3
answers308
viewsData Json on android
When running my app, it crashes when I try to read Json Mainactivity.java public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { String…
-
1
votes0
answers318
viewsHow do I Modify a json File Using Javascript:
I have an ajenda already removed the data from it with jquery now I want to create a way to insert data into that agenda Obs:html file is hosted along with the.json agenda agenda json.: [ {…
-
1
votes2
answers49
viewsJson with C# with node numbered
Does anyone know how to read objects with this file template? It seems that the creator did not use [] for Arrays and also the second node is numbered (not key : value like the json basic). { "1":{…
-
1
votes1
answer1487
viewsGraph of minutes per hours with Chart js
I don’t know if I can be clear, but I would like to make a graph showing the CPU usage line per minute with Chart JS, but with the Y axis rounding per hour. I was able to make the rounding using…
-
1
votes0
answers244
viewsDoes not access the Onresponse() retrofit android method
I’m making a call to a post method that returns an id generated through retrofit 2, however, in return, never access the method onResponse, I’ve tried to use other objects and formats, but none…
-
1
votes1
answer271
viewsHow to access a specific field of a JSON object using JAVA
I’m using Java to get information from Twitter and the REST client Elasticsearch. As a test I did a PUT of info in JSON and then used the performRequest to obtain a specific element. //create a json…
-
1
votes1
answer595
viewsLoad Json file with Ajax
How to upload a Json file to my html. The console does not show any error, but no field is filled with data from the Json file. <h3 class="center">Tela de alunos</h3> <div…
-
1
votes0
answers111
viewsTypeahead with accentuation
I created a small application that uses typeahead to search. I have registered people with accentuated names and to find them I need to write the absolute name (with accent). I need to find a person…
-
1
votes1
answer93
viewsAngular 1 reading JSON cross-Domain
Guys having a small problem with angular and wanted to know if someone can help me, I was asked the following task to make a shelf from products of an external JSON (where has all the info of each…
-
1
votes1
answer631
viewsSending an Array by POST with JSON to PHP
Next, I need to send an array by POST with JSON. I have read about JSON.stringify and in my PHP code use json_decode, but in practice I am not able to apply. I will put the code here and change it…
-
1
votes1
answer269
viewsHow to pass a class as a parameter in another class and return a variable that is within a Thread
I work with Delphi and I decided to learn how to make java applications, and I came across a problem. I have this class public class Dados { public void getJson(final String url) { new Thread(new…
-
1
votes1
answer1312
viewsRead using data from an external json file without jQuery
I have an external json file and want to use its data in various functions I have, but I’m not getting, only when I put all the json inside a variable. I researched and ended up finding this…
-
1
votes2
answers263
viewsHow to enter data with JSON and MVC5
I have a registration screen, where the user can insert as many emails as he wants in each record. For this, in my View I have the following code <div class="form-group"> <button…
-
1
votes1
answer99
viewsRequest validation via jQuery, Json
I want to do a function that the customer type his order it is checked if it exists in the bank or if it is an invalid request. And I want to return this via Ajax, but I never messed with Ajax,…
-
1
votes1
answer1800
viewsConvert a JSON String to a JAVA Object Array
Hello, I’m not getting the conversion, my string is coming like this. { "empresa1": { "category_id" : "Item 1", "id" : 1, "imagePath" : "imagem", "name" : "empresa 1", "short_desc" : "desc da…
-
1
votes1
answer768
viewsString JSON - Two decimal places
I’m reading a JSON object, and I can get the data from TextView. However, in the value of String Preco when the price has a zero in the second decimal place, it does not print in the TextView. For…
-
1
votes1
answer178
viewsHighcharts - Line Chart with date
Hello, I can’t create a Chart line using the plugin Highcharts, where the X-axis is separated by months (Jan, Feb, etc...) and the Y-axis is the number of new customers based on those months. Below…
-
1
votes4
answers559
viewsFunction has screen in real time, hangs the screen with time!
I am studying ajax, jquery and php. And in order to make a screen that loads automatically, for future chat. What I want to understand is the screen loading function. I have index.php code…
-
1
votes2
answers542
viewsHow to convert json to object and put into a system.out.println?
I have the following code that returns a JSON: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import…
-
1
votes0
answers44
viewsBack-End MVC (Laravel) Real Time with Json
I took a course of Laravel, and I made my application in MVC, however, there are some balloons, which I press in JSON, click on the button "login", open the balloon login, in it there are functions…
-
1
votes2
answers84
viewsError while trying to deserialize JSON from a web page
I’m using Luis.ai to create my neural network of intents and Microsoft Bot Framework to create my chatbot, but I’m not able to read a json that luis is generating for me. Luis' class: public static…
-
1
votes3
answers710
viewsRead json via http by Angularjs
I am trying to read with an Angularjs/Phonegap application an HTTPS address that gives me a JSON (https://gestormegaclube.com.br/api/app/v1/parceiros). I’m getting this mistake: Xmlhttprequest…
-
1
votes1
answer303
viewsPick JSON value returned from Laravel
I got the following JSON returned from a controller Laravel: { "id": 105, "tratamento_id": "24", "eim": null, "oft": "12", "codigo_produto": "CO009-1200-1200", "descricao_produto": "COMPENSADO…
-
1
votes0
answers143
viewsAvoid repeat names in json
I am looking for a form/function/method so that it is not possible to repeat the value saved in Json, for example: I am saving the json below and do not want to save the same name in json. [ [ {…
-
1
votes1
answer219
viewsInsertion of float value into a Jsonobject
I have the following situation, I have an object called Item, with a value variable in it. At the time I enter the value in the json object it changes from 1 or 2 boxes after the comma to 15 boxes…
-
1
votes1
answer601
viewsRead and interpret JSON files
I’m developing a program in which I need to read and interpret a JSON file, which is actually an XML file transformed into JSON. I need to select and take some information from this JSON file and…
-
1
votes2
answers1176
viewsGenerate a JSON from a converted XML with Javascript
I was able to convert an xml to json using a solution that I found on the Internet and served me perfectly, it stores all the json in a string and shows on the screen, but I don’t know how to play…
-
1
votes1
answer99
viewsPHP and json how to print?
Could someone help me print each of these elements of this Json using php.…
-
1
votes1
answer169
viewsJava Web + Ajax + Servlets
I’m having a hard time trying to get the date in Ajax. When I run the code, I get the status 200 and network in the Chrome debugger I can see the return, but I can’t do anything else with the date,…
-
1
votes2
answers884
viewsPopular inputs with Json file in jQuery
I would like to know how to fill in some inputs through data from a json file with jQuery. Follow the data in Json: {"data":[…
-
1
votes0
answers162
viewsHow to pick up inputs with jquery and ajax
I am with the following doubt I have a web application I want when logging into the homepage "index.html" take the 'name' and 'email' and put with jquery in another page 'paginaprincipal.html' . for…
-
1
votes0
answers64
views"Missing Template" when trying to use Jsonview in Cakephp 3
I am trying to create a Jsonview response to my application. I followed the steps described in the manual https://book.cakephp.org/3.0/en/views/json-and-xml-views.html, but I keep getting the bug…
-
1
votes2
answers461
viewsConvert JSON to Array in java
I have a JSON that represents a test query: {"dctitle":"TestesStatus", "oslc_cmtotalCount":2, "oslc_cmresults": [ {"dctitle":"33643640", "rdfabout":"XXXXXXXXXXX", "dbid":"XXXXXXXXXXX",…
-
1
votes2
answers1120
viewsHow to read Json with Android
I wonder how I read json in two different ways. 1 - I have a Json {"nome": "JOA", "cpf": 7.4417, "idade": "15"},{"nome": "PAT", "cpf": 8.5528, "idade": "20"}"}; This one I can read and play in…
-
1
votes1
answer1527
views -
1
votes2
answers999
viewsLocate id within json array[]
Good night! I’m having a problem locating array by square bracket case. I’m trying to get the data from "Stats". But its only reference is "accountId" or "summonerName". To get the reference of…
-
1
votes1
answer65
viewsHow to define a data structure in Json, with the name of the object at the top of the structure?
I am working on json and I really need to get this structure: { "Identidade": [ { "numero": 1704, "numeroFinal": 1804, "id": 28 }, { "numero": 1806, "numeroFinal": 1905, "id": 28 }, { "numero":…
-
1
votes1
answer64
viewsTaking data from one Json and saving in another [Perl]
Good evening, I would like to know if there is a way to take data from one json and save it to another automatically without having to treat json as "text" (regex) in this case, I have already used…
-
1
votes2
answers446
viewsAccents problem in Vue-json-excel
I’m using the vue-json-excel to export an Excel spreadsheet (I have the table on my screen and use it to export the same data to excel). Until then, everything works perfectly, however, I had…