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
-
0
votes1
answer267
viewsSerialize Python Objects in JSON
Does anyone know how to serialize in YAML or JSON a class that contains attributes that contain other classes? Class player has the Spellbook attribute (class that returns a magic list) and the…
-
0
votes1
answer31
viewsOptgroup JSON + JS
I am trying to group the result of a json into 2 optgroups. Follows the JS: //AJAX CARREGA LOJAS $(function(){ $('#estado').change(function(){ if( $(this).val() ) { //$('#lojas').hide();…
-
0
votes1
answer42
viewsReturn list of files contained in a web page
I need to pass the link of a page to a program in js Node, and it returns me all the names of the files . bz2 that it contains in it. The page would be that of the image. It would be something like:…
-
0
votes1
answer82
viewsChange json format output in Rails?
I have an API that has the data in the following format: [ { "id": 1, "vehicle": "350", "code": "350", "delivery_date": "2019-07-26T00:00:00.000Z", "created_at": "2019-08-07T17:00:37.000Z",…
-
0
votes2
answers350
viewsShow json output on jquery and html screen
I have a question on how to show the data of a json return, on the screen using html,javascript and jquery. Inside a jsp file. Follow my javascript page: function getAvaliacao(){…
-
0
votes1
answer76
viewsPopular and select a Select (Dropdowlist) option - jQuery - json
Good afternoon! In an ajax query, I get an object objectAccount, and in this object there is an array, containing a list of banks I’m populating the select account-bank with the data obtained in…
-
0
votes2
answers189
viewsJSON.stringfy of large objects with Angular 8
I am starting an application with Angular 8 and have a question that is being complicated to solve. Is there a practical way to turn a javascript object into a JSON string defining which attributes…
-
0
votes0
answers114
viewsChange format Date of a JSON statement of a Controller
I have a Controller that generates an output in Json format, below indicated. The date is returning this in Json 2019-07-22T16:00:04.8579075, I want you to return 22/07/2019 16:00 { ordemChegadaId:…
-
0
votes2
answers170
viewsError handling JSON data from a PHP API
I am in error when manipulating JSON data from an API, some fields I can even manipulate. I’m taking the responsibility of the API, converting to a PHP object with the json function Code the problem…
-
0
votes1
answer103
viewsImport JSON data between Python files
I’m having a hard time. i have a code in Selenium(test.py) and I have another python queue code (Queue.py) my goal is to pass the error message [ error = {'Status': 'Error'} ] to the…
-
0
votes1
answer761
viewsPython module import Import ('cannot import name rr',))
I have two python codes, one that is called [receiving.py] another that is called [sending.py] I have a problem importing my codes. I’m just gonna send a little piece of my code that I’m in trouble.…
-
0
votes0
answers222
viewsHow to group array of JSON objects with PHP
I am receiving a JSON string from an API, to display the data I am converting the JSON string to php object, but my question is whether it is possible to group these objects, for example group all…
-
0
votes1
answer330
viewsProblem with accentuation in the return of PHP to Data Tables
Hello. I am performing a query to the database, with php and mysql, and return the result of this query to Datatables (in the form of JSON) which lists this result in a table in my HTML. The problem…
-
0
votes1
answer36
viewsIonic 3 problems with get in estorage
I have the following problem. apelidoCidade(){ let cidade = this.storage.get('apelidocidade').then(res => console.log(res)); return cidade; } getbanner(){ let url = 'http://localhost/'+…
-
0
votes1
answer170
viewsPass two variables concatenated into a Json object of a PHP POST Curl
I’m sending this json request in the Curl POST with PHP. Here the json of the POST: "Payment" => [ "Type" => "Vendor", "Amount" => 100, "CreditCard" => [ "CardNumber" => "$card",…
-
0
votes1
answer37
viewsPassing the Parameters of a Fragment that uses json for another Fragment
I have a screen that searches by name through an Edittext. And when searching by name it brings me a Recycleview with its results. And when I touch an element of the result, it goes to a Fragment…
-
0
votes1
answer66
viewsConsulting input data in the database - ASP + SQL
Good guys, I’m more than a beginner in ASP and JS and I’m hitting here to do something that should be simple. I have an input which will be filled with a value "xxAMSxxxx/xx" and needed to validate…
-
0
votes2
answers1554
viewsAdd hours as Moment.Js
I have a table with the following fields: However I do not want to work with date and time together, I wonder if there is the possibility of Moment.js adding only the hours, without necessarily…
-
0
votes2
answers122
viewsIs using the Mariadb JSON type a good one for saving primary keys?
I’m developing a database for a local travel agency: I need to pick up all the passengers and store them in one entity Viagem, so that in the "passengers" field of the latter would be of the JSON…
-
0
votes3
answers860
viewsDeserializar json vector in Dart/Flutter
I’m trying to deserialize this json vector [{"i":737,"n":1}] but I’m not getting the variables "i" and "n". Class to deserialize class PortasAbertas { int i; int n; PortasAbertas({this.i, this.n});…
-
0
votes1
answer21
viewsFilter json data in php
Boas, I would like to filter the date of a json file. The date I receive is something like this. { "max_new_quota": 21474836480, "username": "[email protected]", "rl": { "value": "60", "frame":…
-
0
votes0
answers23
viewsDoubt with xhr.Answer
I have the following Javascript code: function load(){ var validationEmail = Email.value; var validaationCode = Code.value; var json = JSON.stringify({"userName": validationEmail, "codeCustomer":…
-
0
votes0
answers32
viewsError opening multiple calendars with Javascript!
Good afternoon guys, My question is that my table comes with comic information and connects in the view by an append, I added a calendar to them. append code: $("#table"+data[i].date+"").append(…
-
0
votes1
answer88
viewsProblem in JSON request - API - json_decode
Greetings, I’m trying to request a JSON so I can attach each value in a variable, conduit, I’m getting the errors: Notice: Trying to get Property 'product' of non-object in E: Rafael Desktop T.I…
-
0
votes1
answer24
viewsHelp Request with VUE JS Variable
I use the v-model to play the value for the variable categoria_selecionada, I own a API that searches the subcategory in the database by following the address as per id past, for example passing the…
-
0
votes1
answer65
viewsJSON data return without spacing
I have a class that has a single method to make a request for data that are in JSON format and return a single "fantasy" field that in my case is stored in the Company name variable. This class…
-
0
votes1
answer272
viewsReturn a JSON Array with shell script to use in PHP
Good evening, you guys, I’ve been hitting myself with something for a few days. I am developing an application to connect via SSH in an OLT with shell script and return the "Shows" to a web…
-
0
votes0
answers131
viewsObject for Jsonvalue via Datasnap
Ola, I have the following object: TResult = Class private FStatus : TStatus; FMensagem: string; FEntidade: string; FLista : TFDJSONDataSets; //tentei esse FLista2 : TFDMemTable; //segunda tentativa…
-
0
votes2
answers246
viewsCalling a method within a Javascript method
Follows the class: class Advogado{ constructor(nomeAdv, tipoEnderecoAdv, ruaAdv, numAvd, cidadeAdv, estadoAdv, oabADV, estadoOabAdv, emailAdv){ this.nomeAdv = nomeAdv; this.tipoEndereco =…
-
0
votes1
answer44
viewssimple.Jsonarray for json.Jsonarray
I have a problem. In the same code, I kind of need to use both simple.Jsonarray and json.JSONArray. I can’t import both, so I’m trying to use the simple. It turns out that when I do a request, the…
-
0
votes2
answers35
viewsProblem with array_merge and WHILE - PHP Codeigniter
Good morning! I have a while that reads all the lines of a specific file, inside that while it calls a method that returns a value. This value is an array, and I’m giving a merge array_for each…
-
0
votes2
answers285
viewsHow to use 'filter' in a flatlist (json API)
The api has the date as follows: "period": "2019-10-19T00:00:00.000-03:00", Pull my flatList like this: componentDidMount() { console.log(this.props.navigation) this.loadData(); } async loadData() {…
-
0
votes1
answer312
viewsConvert a SOAP response to JSON
I receive as response the following XML <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <obterLoteCupomResponse…
-
0
votes1
answer195
viewsSort method of my flatList
<FlatList style={{backgroundColor: 'white', marginTop: 10}} data={this.state.progr.data.sort((a, b) => a.start_time > b.start_time).filter(x => x.period ===…
-
0
votes1
answer200
viewsNewtonsoft.Json.Jsonconvert.Serializeobject excluding @
I am running Schema for my page and need to convert the information to print it in JSON. However Newtonsoft.Json.JsonConvert.SerializeObject(schema); removes "@" from "@context" and "@type". Like…
-
0
votes1
answer155
viewsCreate and populate elements with json return in jquery
Good night, you guys. I need to take a json return and mount an html with the data dynamically. I got to the part where I can get the json and nothing else, I’m stuck. $.ajax({ type: "get", url:…
-
0
votes1
answer42
viewsAssigning a text within JAVASCRIPT methods?
I have a problem need to insert a text before returning a request in a api: getSW(); function getSW() { $.getJSON("https://swapi.co/api/films", function (json) { var data =…
-
0
votes1
answer674
viewsHow to process JSON that has an object array as property with Observable (Angularjs)?
I have an API that returns objects JSON as follows: { "data": [ { "nome": "objeto1" }, { "nome": "objeto2" }, ] } However, when receiving the objects in the service, I can’t just pick up the…
-
0
votes3
answers588
viewsReturn of request status code
I’m doing a post for a third party API but would like to get the return code from it to save in our bank, however, I can only get this return code if the code is 202, if it was 401 or 500 it returns…
-
0
votes1
answer155
viewsAdd arrays in PHP JSON file
Next, I need to make a json file with a stock of products and a page to add them to JSON. I got it with PHP through json_encode() add an array, but the problem: When I add an array, it n writes the…
-
0
votes2
answers467
viewsHow to put a json returned from an API within a select?
I am trying to make the credit card payment form, using the pay.me. I would like to calculate the installments via API and return them within a . I can return the json and return it to the…
-
0
votes1
answer94
viewsDropdown Hidden
Good afternoon, I have a problem in my JS menu where there is a dropdown menu: <!-- MENU USER --> <div class="collapse navbar-collapse navbar-user" id="navbarSupportedContent"> <ul…
-
0
votes1
answer87
viewsAccess and change ID content by url?
I’m doing some tests with API of BLOGGER and in the tests I performed I managed to reach a certain point that is to add content to articles via API. Page where I’m doing my tests:…
-
0
votes1
answer32
viewsMerge different Methods Querys into a single JSON
I’m trying to create a select where returns data in json and then created a method that would be a "database" that is another select bringing a result, as I would to juxtapose all this and bring a…
-
0
votes2
answers98
viewsI can’t get the button to run a function on the extension
I want to create an extension for Google Chrome that checks the status of a CPF, but I can’t get the button to run the function. How do I get him to execute?…
-
0
votes1
answer22
viewsExtension does not execute and does not show which error
I’m having a problem, I’m trying to create an extension to check the state of emission of Cpfs, but when clicking on the "check" button the extension does nothing, but also does not present the…
-
0
votes1
answer86
viewstaking a JSON and transforming it into an Object within HTML
I’m having a problem with the code below, I get a variable( {Devices}} ) a JSON and I try to convert it into an object to get the information of how many devices I have inside it and how many…
-
0
votes2
answers772
viewsReturn JSON PHP POST query
I have this script in PHP, but I can’t see the result of the POST [Body]. It sends a CPF query and should return a json with the data. But nothing appears in the query. <?php $array = '{…
-
0
votes1
answer51
viewsJSON_EXTRACT in Mysql by JAVA does not work
Hello guys I have a field in mysql called itemvenda of type JSON with the following data: {"secao": {"codigo": "114", "descricao": "FRUTAS 1"}, "gondola": "1", "cestaBasica": false, "departamento":…
-
0
votes0
answers37
viewsHow to access a varial that is within a function?
I’m trying to access my JSON via a variable that I put in Try and catch , but I can’t access it in other parts of the project, this makes things very difficult because all the project data is…