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
answer700
viewsSave data from an array to a database
I need to record the contents of an array that returned from a Json deserilization (return of a Json with more than one level), follow the line with the method that extracts the array: Departmants…
-
1
votes1
answer45
viewsDeserialize for an Icollection without the need to create an extra class
Hello. I am using Json.NET to deserialize my object. Today I do it as follows: JsonConvert.DeserializeObject<ICollection<TModelo>>(stream.ReadToEnd()); Currently I have to create an…
-
1
votes1
answer277
viewsweb request and json no c#
I am working with firebase, and I am searching the server data with Httpwebrequest, I was able to recover this data in the following way; {"-L1od7ljenm8zhsps7ne":{"Age":"18…
-
1
votes1
answer400
viewsHow to convert this Json to Objects in C#
How to convert this JSON to a C object#? { "Maquinas":{ "Maquina1":[ { "comando":"Get", "enderecoip":"192.168.254.221", "port":"3000", "usuario":"teste", "Senha":"123456" }, {…
-
1
votes2
answers438
viewsSave data clicked on a JSON
I am creating a simple application in Angularjs, the application boils down to 3 pages: Apparatus: Where the person chooses the apparatus Plans: Choose the plane related to the device Final…
-
1
votes1
answer657
viewsreturn function json object
i have an android function that connects to the server and returns me a json, that json and stored in a variable called object. however I have to make this object go to another screen via Return but…
-
1
votes1
answer3199
viewsHow to return a C# error with Json Result?
I am starting now with the language C#, and I came across the following task on a system, I must do an error treatment and return this in Json Result, the returned data should be collected and sent…
-
1
votes1
answer477
viewsSearch and view objects items nested with Javascript
I have two lists, Aggregation brings me the codes of the categories and the list Categories brings all the categories I have registered. I need to search categories in categories using Aggregation…
-
1
votes1
answer34
viewsHow do I get the id of an input created by jsonform?
Personal how do I get the id of an input created from a Json with the Jsonforms documentation plugin here. It uses Schemas and Forms to dynamically assemble html, but I’m not able to work with input…
-
1
votes1
answer517
viewsReturn the URL of an image via JSON
I’m communicating my website with API of Behance and I have the following script written in Angular 1.5.5: var app = angular.module('PortfolioApp', []); app.controller('PortfolioCtrl',…
-
1
votes0
answers30
viewsQuestion: What is the best way to display data in a table?
I am studying JSP and Servlets and also Jquery and came across a situation. Situation: Imagine that you will display a product table where 20 items per page will be displayed for example. With that,…
-
1
votes1
answer74
viewsHandle Json Format Action Return
Devs, I have a C# and ASP.NET application with an Action that returns a JSON array. When I return only a string I can deal with javascript now, when I return an array I don’t know how to handle in…
-
1
votes1
answer153
viewsI’m having a code problem in the json request generated from php
php query file. <?php //header("Content-Type: application/json; charset-utf8"); header('Content-Type:' . "text/plain"); $baseDado = "teste"; $host = "localhost"; $user = "rafael"; $password =…
-
1
votes1
answer216
viewsHow to concatenate a javascript object to a post form?
I have an object JSON that I built at runtime, I need it sent to my servlet, along with the other form fields, via post, how do I do this? I searched a lot but nothing worked. function createJSON()…
-
1
votes0
answers48
viewsOrganize json with Eloquent
My question is this: I want to organize my json for me to consult the table Animal and Hacienda, but organized, example: { "animais": { "id": 1, "nome": "Mimosa", "data_nascimento": "2017-04-11…
-
1
votes1
answer608
viewsHow to save JSON data to hard disk? (or access it with javascript)
I am working on an application to study the syntax of languages used on the web (html, css, javascript and etc...), through a "mini-game" of questions and answers, but my problem has been how to…
-
1
votes1
answer199
viewsRecover JSON data via POST
I have an Application that sends the strings via POST and recovers via JSON, but I am not able to separate the coordinates that arrive in an array. Follow an example $datas =…
-
1
votes0
answers1123
viewsSend JSON Javascript post method
I have a Restful API written in Java, which has implemented GET and POST methods, tested the methods with the Postman application and are working. Follows the class Filter @Override public void…
-
1
votes0
answers66
viewsProcessing json information in Javascript
I am working with Flowxo making a BOT for Telegram. In it, I need to process some direct information from an API in json format. I can include a Javascript code in the process. The process works…
-
1
votes1
answer566
viewsAccess a JSON key
I am making a POST request for my Webservice and am getting as a result a Json, I would like to pick a specific field of Json, because the key names are fixed ex: "campo1, campo2,campo3"... and so…
-
1
votes2
answers40
viewsGet a word from a variable that has more than one word, with jQuery
I have a JSON file with employee data, like full name, date of birth, marital status, position, salary. I need to show through a filter by name or surname, regardless of case or minuscule: Example:…
-
1
votes1
answer63
viewsSelected Combox na javascript
Good evening guys, I need a little help, it’s simple but I’m in a jam. I have this combo inside a MODAL, it occurs that the fields of this modal I populate everything by javascript/Json searching…
-
1
votes1
answer556
viewsCreate JSON from Select from the database
I populated a mysql database with data in this format: and wanted to return this in json using php, the problem is that I have for example several lines with the same state, and need to return the…
-
1
votes1
answer560
viewsProperty 'includes' is Missing in type 'Subscription'
I am wanting to map the list of questions and throw them in the questions property of my JSON object, but ai at the prompt gives this error: "ERROR in…
-
1
votes1
answer193
viewsHow to access attributes of a JSON that has been converted with special characters?
I am consuming the API of microsoft translation, they work with the return in XML(Because it is, MICROSOFT returns XML in its API’S), I managed to run everything right, but as I hate working with…
-
1
votes2
answers708
viewsI want to view all json array records
I made this javascript code: function ajax(response) { var dados = response JSON.parse(dados).forEach( function (registro){ var html = "<tr>" html += "<td>" html += registro.nome html +=…
-
1
votes1
answer578
viewsReturn Json with special characters
I am performing a query in the database (Php, Mysql and Ajax), the return of this query is a Json, however all accents are coming with special characters, I put a log to see the result. Below…
-
1
votes0
answers131
viewstaking the values received from json_decode
So I have this code $result = json_decode($output, true); var_dump($result); it is generating the following. array(3){ [ "status" ]=>string(9)"completed"[ "flights" ]=>array(2){ [ "outbound"…
-
1
votes1
answer303
viewsReceive Json with empty arguments
I created an API to receive database data via json for my android application, but some columns of my table get null, generating an empty json argument that is generating error in my application,…
-
1
votes0
answers91
viewsHow to map a json string to another json string?
Is there any way to map a json string to another json string? The goal is to take the value of one json property and set it in another json property. Exe; I have the json. { "codigo":0,…
-
1
votes1
answer1816
viewsc# Json returning backslash
I’m new to the web, I’m trying to return a json but it comes with bars like this: {\"NomeUsuario\":\"TESTE\",\"TelefoneUsuario\":\"1111111111\"} How do I make him look like this:…
-
1
votes1
answer2568
viewsString size exceeds the value set in the maxJsonLength property
I’m trying to generate a file Json from a SELECT of the SQL SERVER 2016 table. There are about 4713 rows, this is exceeds the value set in the property maxJsonLength. I can exceed that set value?…
-
1
votes1
answer978
viewsMap json using Jackson
I have a question on how to map a json to a model, I really have no idea which way to go, I saw some material on the internet, but what I really lack is to really understand how this works there in…
-
1
votes2
answers655
viewsHow to save Javascript objects in JSON format in localStorage, and then deserialize them?
I am getting values from a form in html, then I want to use a function to take these values and create an object, making them attributes of this object. Then, I want to store this object in the…
-
1
votes1
answer341
viewsConverting JSON to android arraylist
Good afternoon! I’m trying to consume an API on android but I’m having difficulty because in the JSON file it brings a category, I tried to add the variable "acronym" but it did not work; the JSON…
-
1
votes1
answer241
viewsPrint Javascript Object
I have this return in JS, and I would like to print the messages like this: Email é Obrigatório! Limite de Testes é obrigatória! ... and so on. The problem is that in the middle of the return on…
-
1
votes1
answer176
viewsGroup json with PHP?
How do I group a json according to a field? I have the following json: { "origem": [ { "id": 154826, "nm": "", "tp": "", "am": "", "sg": "SAO", "sq": 925 }, { "id": 2289, "nm": "", "tp": "", "am":…
-
1
votes1
answer608
viewsAdding values to a deserialized JSON object attribute in Javascript
My problem is this: I am retrieving a Json object from localStorage via Javascript, and I wanted to add a value to one of these attributes, and then save the d evolta object in Storage location.…
-
1
votes1
answer535
viewsGrab object inside JSON string
I receive the following JSON from a web service / `{ “SinteseCadastral”: { “Documento”: “99999999999”, “Nome”: “NOM DE TESTES”, “NomeMae”: “NOME DA MAE DE TESTE”, “NomeFantasia”: “NOME FANTASIA DE…
-
1
votes1
answer340
viewsHow to get a list of JS objects in Controller C# MVC?
I have an object with a list that will return me 3 or more items. I pass this object like this: var jsonObjs = JSON.stringify(arrayObj); alert(jsonObjs); CarregaNotas(jsonObjs); function…
-
1
votes1
answer296
viewsAdd and remove select with button
I am developing a form in which I have a select that chooses states and capitals of brazil, but as those who fill can add more than one select I need to make a button add another select, is that in…
-
1
votes1
answer68
viewsList C# missing what has already been added
I’m a beginner and I’m developing a shopping cart. The routine I thought was: Every time I click the add button, the product is sent to the controller via ajax request. I already have a list created…
-
1
votes2
answers311
viewsA jQuery Get() inside another jQuery get()
I need to run a jQuery Get() inside another, but I’m not getting anywhere, just ignore the second Get() without returning what I need (the username of the second get()):…
-
1
votes1
answer677
viewsHow to Do Basic Type Authentication with Delphi XE8
I am developing an application in Delphi xe8 that will consume web service data that returns data in json. The problem is that it is presenting the message HTTP/1.1 401 Unauthorized…
-
1
votes1
answer59
viewsHow to send the value of a radio with the concatenated user id?
Good morning my doubt and complex this creating a system that will create card of each registered user, to differentiate the card each element of the card has the user id. I would like to know how I…
-
1
votes1
answer26
viewsProblems with Json and php
My code should take data from the database, and assign it to an array, but when I list this array, the data does not enter the fields <?php include_once '../../classes/Conexao.php'; use…
-
1
votes3
answers159
viewsRead values from a Json structure using Jquery
I’m trying to read the data that is received via php and I need to read these values separately. Return is an object json, when I show on console using command console.log(data) and the following…
-
1
votes1
answer157
viewsCapturing "radio" input data and transforming into JSON
(This project is being developed with Spring Boot + Thymeleaf) I have an html page that will work as a questionnaire containing about 100 questions (the code below is just an example). Each question…
-
1
votes2
answers88
viewsForeign key in Webapi with dotnet core
Next I am creating a webapi (I am using the Entity Framework) with two classes, Course and Discipline, where the discipline has the Id of a course, I created as follows: public class Curso { public…
-
1
votes1
answer38
viewsData return en JSON in an array , uploading the database ID by the respective Names. How can I do this?
I made this code, but it only returns me the ids, and I would like in the place of the ids he did a search by Ner Join in the database and returns in place of the ids the names. Php code: <?php…