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
-
2
votes1
answer2164
viewsDatatable with JSON
I’m making a datatable with ajax return. $.getJSON("sql.php?operacao=usuario_lista&excluidos=false", function (data) { alert(data.users); $('#tabusuarios').DataTable({ "aaData": data.users,…
-
2
votes2
answers122
viewsString comparison
Problem : I have to get the object that displays the content in the English language ( lang == en ) But depending on the search performed the order of the languages comes completely different and I…
-
2
votes3
answers404
views -
2
votes2
answers1533
viewsHow to bring the typed data and store it in a json to do the processing afterwards?
I would like to take the data typed in my form and put it in a json, but I don’t know how to do it. My HTML form is as follows: <form action="" class="formContent" id="myform"> <div…
-
2
votes0
answers179
viewsString conversion error in Jsonarray - Volley Android method
My application receives a Jsonstring via web service from a C#API as listed below: [{ "LimiteCredito": 123.00, "PessoasFuncionarioId": 16, "Id": 12, "Nome": "Cliente PF A", "DataEdicao":…
-
2
votes1
answer393
viewsPull fixed data from . json to select in form
I don’t know what’s wrong that it’s not pulling the json data, my goal is to pull the city/neighborhood data to display through another javascript code, but I can’t get the select to display the…
-
2
votes0
answers206
viewsGson Does Not Convert List to Json
Every time I try to pull all data from a database table and convert the result to json, using Gson, gives error. @GET @Path("todos") public String todos() { Gson g = new Gson(); UsuarioRepository…
-
2
votes0
answers829
viewsRunning a service: the following error happens. Newtonsoft.Json.Jsonreaderexception: Unexpected Character encountered while Parsing value
Framework 4.0 Code block that generates the error var token = Configuracao.Config.TokenAgrometrika; if (Configuracao.Config.ValidateTokenAgrometrika > DateTime.Now) return token; var autenticacao…
-
2
votes1
answer1070
viewsUsing IBM’s Watson with php and Curl
Good morning, I’m trying to use the IBM chatbot service Watson. As a test I created my support workflow for a simple pizza order. At the beginning of the call he welcomes you and asks what pizza I…
-
2
votes1
answer676
viewsHow to sort across multiple fields with Ionic and/or Angularjs from a JSON?
I’m trying to sort fields dynamically by Ionic and Angularjs. I started using the plugin Modal Select, with the button like this: <button class="button button-stable button-block icon-left…
-
2
votes2
answers1670
viewsHow to fix Requests encoding in Python?
I’m studying Requests in Python and I’m trying to get the data from the zip code: http://api.postmon.com.br/v1/cep/ I can pick up, but when it comes time to show them, how I live in São Paulo…
-
2
votes2
answers1089
viewsFilter with Jquery, Json and Input
I have a list of inputs with type checkbox, with values that are loaded from a JSON file. I wanted to know how to make a filter, so that when clicking on a certain checkbox, the products (which are…
-
2
votes1
answer130
viewsRearranging product lists with Javascript?
I wanted to know how to change a product list. I have the products in a Json, and would like to implement a function to reorganize the products by Mais recente, Maior ou Menor preço. JSON…
-
2
votes2
answers58
viewsHow to read json in angular1?
I have the following json {"message": "457896","additionalData":{"google.message_id":"0:149534266","coldstart":false,"collapse_key":"com.ionicframework.lucasteste693113","foreground":true}} How can…
-
2
votes2
answers121
viewsHow to screen a serialized object?
I’m trying to convert an object that contains a relationship and Serializando afim, to send it to View by Ajax. I have two related classes public class Eventos : IEntidade<EventosAuditoria> {…
-
2
votes1
answer78
viewsSelect that returns JSON
Hello! I have the following PHP code: login.php <?php $msg; if (isset($_POST['login']) && isset($_POST['senha'])) { $login = str_replace(" ", "", $_POST['login']); $senha = str_replace("…
-
2
votes1
answer156
viewsHow to make a combobox insert text depending on the choice?
I’m using the help of a post here in the OS. The difference is that instead of having several options to choose in the other combobox, I only have one option in the bank, which should already be…
-
2
votes2
answers443
viewsHow to create Associative Array in javascript, json, how to manipulate?
It’s the first time I’ve dealt with this situation, so I don’t know exactly how to get around it. The fact is, I have a form with several inputs, divided by sections: In Experience Tab, I fill some…
-
2
votes3
answers104
viewsHow can I simplify access to the values of interest of a JSON in Javascript?
Context: I’m developing an application that consumes multiple Apis. The JSON returned by these Apis have their own structure, where it is often not the most intuitive for the programmer to explore…
-
2
votes1
answer9195
viewshttpclient - Webexception: The underlying connection was closed: The connection was closed unexpectedly
I created a very simple C# console application to test connection in an API, but I can’t submit the request. I tried with other Apis and they worked, but this particular one I can’t. It would be a…
-
2
votes1
answer1155
viewsHow to make CRUD buttons on datatables?
I’m doing server-side activation and I want to know how to make some buttons from a basic CRUD, in the last row, like this: My code <script type="text/javascript" language="javascript"…
-
2
votes0
answers2276
viewsWhat causes invalid JSON error?
I’ve done what was said in this post: json_encode - Invalid JSON and it hasn’t been resolved yet, so I’m asking. I’m using the jquery datatables server side. I made the activation server side with…
-
2
votes2
answers145
viewsRecovering string JSON value
I have an app PHP that returns me a string Json: $cep = $_POST['cep']; $token = ''; $url = 'http://www.cepaberto.com/api/v2/ceps.json?cep=' . $cep; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,…
-
2
votes2
answers1516
viewsDeserialize json string array to string array
Hello, I’m having trouble deserializar a Json, I’m not getting the right data. There is the Main Class that would receive the data list public class PermissaoDossie { [JsonProperty(PropertyName =…
-
2
votes1
answer485
viewsConversion from Enum to string
Good afternoon! I have the following situation, as return of a request I receive a json with various information. In c# convert this information to objects using Jsonconvert.Deserialize().. Look at…
-
2
votes3
answers327
viewsError reading JSON with PHP
I am trying to read a JSON file in php with the following format: {"leads": [{"id":"1", "email":"[email protected]", "user": "[email protected]", "first_conversion": { "content": {…
-
2
votes1
answer489
viewsHow can I browse this JSON and recover the Movies list?
I am having difficulty going through this JSON and extracting the data from the "Movies Array". Follows JSON: (https://yts.ag/api/v2/list_movies.json) The mistake is this:…
-
2
votes1
answer182
viewsHow to serialize a color with Json?
I have the following code, where I’m trying to serialize and deserialize a class that has two variables Color: static void Main(string[] args) { Color cor = Color.FromArgb(255, 255, 0, 0); Color…
-
2
votes4
answers1120
viewsError Deserialize Json in C#Template
Friends, I am getting error to make the deserialize of the following JSON: { "Comanda": [ { "status": "Produzido (Codigo 3)", "estabelecimento_id": 18, "cliente_nome": "Marcos Manfrin",…
-
2
votes1
answer81
viewsLaravel 5.3 update JSON Mysql field - #3143 - Invalid JSON path Expression
Query generated by Laravel: update `informations` set `parameters` = json_set(`parameters`, "$.'Campo teste'.type", 'string'), `parameters` = json_set(`parameters`, "$.'Campo teste'.value", 'Novo…
-
2
votes1
answer12636
views -
2
votes1
answer638
viewsRead Json without "knowing" the JAVA keys
The problem is that I need to inform the professions and wanted it to be automatic to read the json without having to inform ocup[1] = "jornalista". I would like the json reading to be automatic. {…
-
2
votes2
answers647
viewsRead JSON and show in html using Angularjs
I’m trying to read the data of a Json file in html using Angularjs, but I’m not getting it. Follows part of the index.html code: <div ng-app="app"> <div class="page-header" id="principal"…
-
2
votes1
answer110
viewsIs there any way to bring information from the database without using server side language?
I was evaluating the website of Zap Imoveis to find out what languages and technologies are used on their website. I use the Wappalyzer, an extension of Google Chrome, which shows the technologies…
-
2
votes1
answer282
viewsHow to get a specific Json/XML object?
I need to get the contents inside <extract> to use in my application, but I’m not getting it. I tried to create a class with the same objects, I tried to use regex, but without success. I got…
-
2
votes1
answer1733
viewsHow to read Json with multiple lists (DELPHI)?
I’m using the XSUPEROBJET examples to read the Json below, but the examples use simple Json structures, and they work, but when I try to read the structures with multiple lists they don’t work. I…
-
2
votes1
answer173
viewsHow to return values from two distinct php tables
I am a beginner and wanted to create a function that would return me from the name Cpf, user and password of the person in the system. Where the name and Cpf fields belong to the user table and the…
-
2
votes2
answers1185
viewsHow to Read this json with PHP
How do I read this JSON file with PHP. I tried this way, but it doesn’t work. <?php $json_str = '{ "numero":"1000", "log": { "message": "testing connection to the target URL", "level": "INFO",…
-
2
votes0
answers60
viewsSend indeterminate amount of JSON strings via socket
have an application cliente/servidor where the client makes a request to the server and the server makes a query to a banco de dados and then returns this data to the client in the format JSON, as I…
-
2
votes0
answers48
viewsDeserialization of the wrong json on the date of the object on the java server
I have a User object and it contains the dataDeascimento attribute, I pass the user object to the server, the date I provide in the following format 2017-12-31, but the server changes to 2017-12-30,…
-
2
votes1
answer680
viewsGson Library Changing useful. Date
When using the library GSON for the manipulation of JSON, I realized that by doing the parsers the date is being changed, it’s tiny, but it’s enough to break my unit test with JUnit. Follow a sketch…
-
2
votes1
answer1478
viewsClasura Where em campo tipo json no (Laravel + Eloquent)
The problem is the following, I have to bring from a select the permissions that a profile has, only that the permissions are in a json field, and because it is several permissions we have a…
-
2
votes1
answer62
viewsAjax, PHP Problems when receiving data
Okay, guys, here’s my problem. I have a JS function to make a query in mysql database via ajax, it returns apparently correctly but when I try to access the value of "Undefined" This is an…
-
2
votes1
answer807
viewsManipulating a JSON with the GSON library
This is the json: { "professor": [ { "latitude": -23.1843473, "longitude": -45.8840718, "title": "Microcamp", "endereco": "rua vilaça 2010" }, { "latitude": -23.1843473, "longitude": -45.8840718,…
-
2
votes2
answers621
viewsRead a specific value in Json with PHP
I’ve already searched all the sites, but I couldn’t find a way to get the value of totalPage. I’m reading Json with the PHP and I need to take this amount to make the pagination. Below is the data.…
-
2
votes3
answers1279
viewsHow do I view the JSON of the API?
After executing this one, I came across this error, which did not display the API information. Whereas in another URL of a similar API the code displayed and worked perfectly. API URL:…
-
2
votes1
answer32
viewsFunction filling only one line
I created a function so that as the user type a client number, is filled the fancy name of it, but as this data comes within a table and I use array to capture (fazer insert e update) in this data,…
-
2
votes1
answer33
viewsJavascript object does not create new Keys
I am using Mongodb and returns me all the right data but when I want to add a new Key simply does not create. exports.validaLogin = function(req, res) { login.find({ "nome": req.query.usuario…
-
2
votes0
answers46
viewsError reading HTM file for HTML conversion to JSON file
In this Topic I created Been asked how to download zip file from Box server and unzip it on my hosting service which occurs perfectly. After the previous events described, I want to read the html,…
-
2
votes1
answer790
viewsCompare 2 arrays and create a new array if they have the same Id
I have 2 arrays: array1 = [ ... { "id_projeto": 4, "sigla": "ADM-APR", "nome": "Administração APR", "descricao": null, "atividades": [ 13, 14, 49, 80, 81, 82 ] // id } ... ]; array2 = [ ... }…