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
answer86
viewsReturn a table between an initial and final date period, php + json
I’m trying to return a Dashboard table of reports between a specific date on, but when I click on search it just returns me Error: Syntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of…
-
-1
votes1
answer278
viewsProblem consuming JSON with Angularjs
I’m trying to run a test to get the data from a JSON file but I’m not getting it. app.component.html </div><div ng-app="appCursos" ng-controller="meusCursos"> <ul> <p> {{…
-
-1
votes1
answer2777
viewsSave Json to a mysql database
I don’t know how to process to save one JSON within the database. The whole process is thus: I am sending from another server through the script below: $sql = "SELECT * from mgs_castloang";…
-
-1
votes1
answer223
viewsGenerate JSON from a URL and Search by location
Good note to everyone, I wonder if there is any possibility to show a JSON list from a URL and in that same url generate the following values: nmConvenienced, listEspeciality, listEndereco. I tried…
-
-1
votes2
answers94
viewsdoubt with Linq to sql
Guys, I got two tables, sale and blindfolds: Sale: [Table("venda")] public class VendaModel { [Key] [Required] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int id_venda { get; set; }…
-
-1
votes2
answers184
viewsReturn JSON php TRUE or FALSE
Good morning, I would like my JSON filtering to also search if what I searched indicates that it is "true" or "false. I use this array to search the file: <?php session_start();…
-
-1
votes1
answer940
viewsWarning: Illegal string offset, array_column and array_search
I have a script in php, which searches, and compares some JSON returns in 5 different URLS, filters and replaces by their names, it works with some table items, but also returns me the following…
-
-1
votes1
answer469
viewsGoogle Charts Timeline using Laravel (PHP)
I have a controller that queries the data, transforms it into JSON and sends it to the view (which contains Timeline). The chart being used is this:…
-
-1
votes1
answer55
viewsChange JSON Response in php
Hello friends I need to change the answer in json but I’m not getting it. follows: $ch = curl_init('http://sams-api.arar.local/send'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch,…
-
-1
votes1
answer55
viewsError while displaying json in Angular 6
I cannot view json list in html I have json in the.ts component ts component. import { Component, Input, Output, EventEmitter } from '@angular/core'; import { BaseComponent } from…
-
-1
votes1
answer565
viewsRetrieve JSON values in Javascript
I have to create a JSON from a first JSON. { "event":"comprou", "timestamp":"2016-09-22T13:57:31.2311892-03:00", "revenue":250, "custom_data":[ { "key":"store_name", "value":"Patio Savassi" }, {…
-
-1
votes1
answer120
viewsError 405 - "Request not supported method"
The method you are sending by clicking the button is a GET but in my Javascript step as method POST and in the Controller he expects to receive a method POST also. My JS: function criaCategoria() {…
-
-1
votes1
answer133
views -
-1
votes1
answer193
viewsSearch data with JSON
I need, through a <select> </select>, bring the data to some input[type='text']. I believe it is through JSON and AJAX, because the page can not have any "Submit". For example: I have a…
-
-1
votes1
answer51
viewsShows days with pouch ignoring today with return JSON
I’m trying to make a logic to display the next day that a particular warehouse will have mailing pouch, I’m trying to create a array with the quest I’m making in my banco de dados and trying to…
-
-1
votes1
answer35
views -
-1
votes1
answer420
viewsBrowse an array of JSON objects in Android Studio
I receive the following JSON link [{"ProdutosidProduto":"1","Produtostipo":"mp","Produtosmodelo":"F540 2 BAN.PNEU. 100 X…
-
-1
votes2
answers806
viewsHow to deserialize Json Springboot webservice
I am trying to consume the themoviedb webservice and am encountering following error. -----------------------POJO---------------------------------------------- package com.wsemovie.model; import…
-
-1
votes1
answer113
viewsHow to re-order a Viewbag, inside the View?
I’m trying to get a Viewbag that received a list in the controller, be reordered after changing a combobox without the page being reloaded. Passing the List to Viewbag: public ActionResult…
-
-1
votes1
answer229
views -
-1
votes2
answers79
viewsHow can I insert javascript information into a json file
I wanted a way to insert my js output ON.value | OD.value | SKU.value in a json file. In short I wanted my js to create a array with the information ON.value | OD.value | SKU.value js in the format…
-
-1
votes1
answer93
viewsError generating obj with JSON.parse()
I have the code s following that works well var ctx = $( "#myChart" ); var datasets = [ { label: "Gcéu 1", data: [ { x: "2019/03/01", y: 20 }, { x: "2019/03/02", y: 10 }, { x: "2019/03/05", y: 5 } ]…
-
-1
votes1
answer64
viewsQuery error for a JSON URL "getContentHandler, getContent"
I am starting the development of an app that performs queries to various websites with JSON return and treat this information in several ways. To test the Urls I use the code below, works well with…
-
-1
votes1
answer181
viewsHow to generate a Javascript Object Array dynamically
I want to "assemble" a JSON object array with data from the database, but some challenges have arisen. I have the following selection field with a method that is called every time the value is…
-
-1
votes1
answer63
viewsHow to loop to load Json result
People are in need of help, I am carrying some information from Json, as follows:: <?php $json_data = json_decode(file_get_contents('arquivo3.json'), true); foreach ($json_data["Result"] as…
-
-1
votes1
answer910
viewsnpm ERR! code EJSONPARSE
Somebody please help me solve this problem? C:\Users\teamc\Desktop\Electron>npm i asar --save-dev npm ERR! file C:\Users\teamc\Desktop\Electron\package.json npm ERR! code EJSONPARSE npm ERR!…
-
-1
votes1
answer123
viewsForeach PHP problems to read Json
I am trying to get the values of the items (code and price) as follows in Json below: { "statusCode": 200, "message": "Ok", "description": "Requisição realizada com sucesso", "data": [ {…
-
-1
votes1
answer702
viewsHow to resolve "Array to string Conversion" Laravel Error
I am trying to update a registration form modal. The following error is occurring: Array to string Conversion (SQL: update checklist_protocolo set item = 0, item_descricao_id = 5, sim_nao = on,…
-
-1
votes1
answer23
viewsI have a bug in my Symphony Controller Replay
My goal is this, in my Form there is an attempt to send in one of the fields that was empty, something like this. V Example -> https://i.stack.Imgur.com/Hiof9.gif exepction -…
-
-1
votes1
answer267
viewsUse Ajax Json return in HTML
Hi... I have the following codes HTML <div class="escolha"> <h5>ESCOLHA A CIDADE</h5> <select id="selectMunic" onchange="getMunic(this);"> </select> <div…
-
-1
votes1
answer153
viewsI’m using JSON database and I have a question?
I have a JSON database of users, for example, if I update my username via AJAX POST, click update and call AJAX exchange the value based on my ID with PHP, all right. Ai enters the doubt in PHP…
-
-1
votes2
answers52
viewsXmlhttprequest problem
I am reading a JSON file that is located in a folder within the main project using Javascript. The code works in all browsers except Google Chrome. Error that appears in Chrome: Code: function…
-
-1
votes1
answer155
viewsJson does not exist in the namespace *using System.Runtime.Serialization.Json*
An error occurred while trying to import using System.Runtime.Serialization.Json. How to solve? The code converts Json to Object and vice versa, I’m only posting a part of it. using System.Text;…
-
-1
votes1
answer194
viewsHow to fix a wrong JSON?
Next, I’m developing a Python program that collects data from a JSON and transfers it to a CSV file. However, the server routine brings me a JSON with the wrong structure at some points of it, as in…
-
-1
votes2
answers625
viewsHow to manipulate Date attribute from a Python Json result
I have a Json output that I am using in a Google Sheets spreadsheet, and with this information I need to sort them by Date, so I need to get this date into the separate Date and Time spreadsheet…
-
-1
votes2
answers81
viewsIs it correct to mix JSON format with Mysql?
I am helping to develop a web application in Laravel for a company. It has several Modals included in them (including modal that leads to another modal). To call these modals, I am using Jquery, as…
-
-1
votes1
answer342
views -
-1
votes1
answer35
viewsDeserialize an Object of Another
I’m trying to deserialize three DTOS classes to export to a JSON file, I was able to do much of the process but when I try to export one class inside another I can’t. follows the following…
-
-1
votes1
answer43
viewsCreate elements with Json information
I am creating a program where I have a json object and I want to display it in one that I am creating via script but unfortunately I am not able to create these elements, when it arrives in the view…
-
-1
votes1
answer47
viewsPerformance JSON x Properties in Java
Good night. I used to use several files .properties to save the data from the desktop application I develop. I studied the possibility to exchange these files for files .json, because I see that…
-
-1
votes1
answer36
viewsTransform String into Jsonarray Error
I have this string to turn into JSONArray. strbuffer takes the string. String strbuffer = stringBuffer.toString(); JSONArray jsonArray = new JSONArray(strbuffer); You’re making that mistake:…
-
-1
votes1
answer105
viewsread a series of json elements (gson)
Next, I’m trying to write a java method that reads a series of json objects using Gogle’s gson. It’s just not working. I don’t know if it’s my code or my file, they’re both down there: customer…
-
-1
votes1
answer213
viewsPass values via Ajax to ASP.NET MVC Controller
I want to pass values via ajax of a text field on my screen for my action, I am doing as follows: $('#Regra').change(function () { if ($(this).val().trim != '') { var regra = $('#Regra').val(); var…
-
-1
votes1
answer159
viewsList part of a JSON file using C#
For reasons of errors with a Windows version I ended up not working with databases and started using files JSON. But I need to upload only part of the items (List) to one DataGridView according to…
-
-1
votes2
answers77
viewshow to pass data in json format to a select?
Hello, I get two JSON, one from other models brands. { "data": { "JEEP": 40, "LAND ROVER": 46, "LAMBORGHINI": 42, "LIFAN": 43, "IVECO": 94, "ASIA MOTORS": 5, "AM GEN": 1, "ENVEMO": 23, "WAKE": 77,…
-
-1
votes1
answer96
viewsList database data with json/ajax including with createelement
Hello! I am listing the user data of my data group travels json/ajax, the data is captured and arrive in my request file "usuarios.php" but are not being listed. The code was even working normal,…
-
-1
votes1
answer40
viewsProblems with Json and local Storage
I’m learning to use javascript, I’m following a tutorial,I’ve reviewed the code, it looks identical, but it just doesn’t save. After I update the page which I delete or added does not keep, back to…
-
-1
votes1
answer200
viewsRequest data is not returning correctly
I’m trying to create a front end based on the Wars star API, my plan was to create an object to then show on the screen. When I make a request(https://swapi.co/films for example), some object…
-
-1
votes1
answer109
viewsHow to list JSON data in a div using jquery?
Friends, I have the following JSON: { "codigo": "12345", "cerca": "Rato", "host": "df", "eventos": [ { "data": "21\/02\/2020", "hora": "19:38", "local": "Moema\/SP", "status": "Morto", "subTim": […
-
-1
votes1
answer107
viewsINNER JOIN data mixed in php + json
Good evening, so I’m trying to create a API, and I came across the following problem, I’m not able to group the data from my inner join, follows the code : <?php $json = array(); $db =…