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
answer260
viewsProblem loading data from a table with Angularjs and Rails api
The code of my front-end : var listaDeProdutos = function(){ $http.get("http://localhost:3000/produtos").success(function(data,status){ $scope.listaProdutos = data; }).error(function(data,status){…
-
0
votes1
answer71
viewsReal-time search saving server?
Hi, I created a script in jQuery searching the database, based on what the person typed in a field input. With each key the user type, the script makes a new requirement for my API and that’s a…
-
0
votes2
answers2265
viewsPopular table using Json
I’m having a hard time getting a table in my code cshtml. I’m new to the ajax and I’m not really understanding what I need to do with the data that came from the bank. Just follow my code: Code…
-
0
votes1
answer291
viewsHow to take only one element of an associative array
I’m pulling from the Cosmos API the data of a product, it returns me a json that I converted to a string array using $array = json_decode($data); When I execute var_dump($array) he returns it to me:…
-
0
votes1
answer210
viewsJSON return with error: Syntaxerror: Missing ; before statement
I have a problem with the JSON return, and I have already researched and I could not solve. I have the following requisition: var url =…
-
0
votes0
answers338
views -
0
votes2
answers519
viewsJSON Javascript external file
I would like to upload an external json file to my html page through javascript. When I tried, the following error occurred: " Cross origin requests are only supported for Protocol schemes: http,…
-
0
votes3
answers706
viewsRead a Json object with javascript
In a requisicao ajax it returns me the following: { "og:locale":"pt_BR", "og:type":"article", "og:title":"Um titulo qualquer", "og:url":"http:\/\/www.umsite.com.br\/uma-url\/" } My requisica:…
-
0
votes0
answers68
viewsPHP Json error when displaying information with two repeat structures
I’m starting the following json: { "issues": [ { "title": "Falha no servidor DNS", "currentstate": "Em Andamento", "description": "Texto Descrição", "starttime": "24 de Setembro de 2015 as 13:30",…
-
0
votes2
answers1178
viewsHow to define Enumeration in JSON
I have the following enumeration on XSD for a WSDL <xsd:simpleType name="tipoDocumento"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="INICIAL"/> <xsd:enumeration…
-
0
votes1
answer284
viewsHow to make machine translations?
I have a page HTMLand would like to have it at various tongues However nay wanted to make a page for each tongue and edit out in HTML. There is a some way I make a external document, a JSON, I don’t…
-
0
votes1
answer165
viewsWhat is wrong with this Chrome extension?
I made a small extension in Chrome, and it’s not working properly. My extension simply randomizes a word between one of those randomVals and displays. I’d like you to help me figure out what’s wrong…
-
0
votes1
answer70
viewsProblem with JSON filter and Array
I’m trying to filter a JSON with category but I’m not getting it. I have 3 checkbox and when I select them I should filter a json as selected. and when unchecking a checkbox should filter only those…
-
0
votes2
answers137
viewsHow do you get another div with the same name without changing the others?
Well here’s the thing. I have the following code structure: A div called part-sec that brings all the content of the product. The div-price-product comes with the price. So far so good. But…
-
0
votes2
answers257
viewsHow to filter Json data with jQuery?
I have basic knowledge of JS, like to work with jQuery that makes it easy enough. I have several data in Json and would like to create some variables as a result of some Json lines, follow an…
-
0
votes1
answer44
viewsHelp with php and json
I’m having trouble properly displaying in JSON, a result originated from two tables in my database. The situation is as follows: I have orders in a table (A) and the products in that order in…
-
0
votes2
answers2295
viewsHow to generate JSON files through forms?
I want to store the data that users put into inputs in separate JSON files so I can use it later. Can someone help me?
-
0
votes4
answers1877
viewsExport MYSQL information to JSON
Sorry for the ignorance, I don’t know anything about JSON. I have a MYSQL database site that the client needs to export to JSON to integrate with an app. Can you give me a light where to start? Ex:…
-
0
votes1
answer549
viewsHow I Store the Contents of a JSON File in a Variable
agenda=[]; $.getJSON("agenda.json", function(dados) { agenda=dados; }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>…
-
0
votes0
answers30
viewsHow to use JSON in Java
Hello, I wanted to know how to use JSON files, in the Java language, because I need to use them as a database. I just wanted to know how to read and write, that’s all.
-
0
votes1
answer581
viewsDeserialize JSON with dynamic field names
I have a Json like this, and within the entity "purchase", I receive an object with the purchase id, and then the information I need to access, I have already generated the classes, however my…
-
0
votes1
answer91
viewsUndefined index JSON Android
Hi, I’m making the following mistake: I am developing an application that checks a table of an external mysql database by sending the device’s IMEI returning a hardware id, but when debugging the…
-
0
votes1
answer250
viewsRetrieve key and specific field value in Firebase
Please, I would like to retrieve only the key and email from the list, ignoring the other "fields". I wish I had a list, without uploading all the values of all of us, like I’ve been doing lately.…
-
0
votes1
answer156
viewsFetch an item in the http json Object
Well I am "beginner" on android. And in my project, I’m getting from http reponse (with the GET method) a string for Jsonobject. "{ "status":{ "d3": { "stats" : false }, "a1": { "stats" : false } }…
-
0
votes1
answer1501
viewsHow to use Boolean in Json
I have the following JSON, and within my code I have a check to see if autoLogin is enabled. Object {autoLogin: "true", autoLoginKey:…
-
0
votes1
answer1437
viewsLoad JSON via Angularjs
Guys, I’m trying to load a json object to display your information on the screen. The code I’m using is as follows:: (function() { var app = angular.module('tela', []);…
-
0
votes1
answer1913
viewsHow to Request JSON Data
I need to collect some data from a program that has API: Pipedrive API Reference If I understand correctly, for each task, a URL will be generated to do the Requeste from the data, example:…
-
0
votes2
answers51
viewsI cannot place element inside JSON
I have this JSON ["{\"clube\":[\"Flamengo\"]}"], and when I execute that code: $clubes = '["{\"clube\":[\"Flamengo\"]}"]'; $clubes = json_decode($clubes, true); array_push($clubes->clube,…
-
0
votes1
answer55
viewsHow to decode values from javascript?
Good night to all!! Guys, next, I’m getting the following variable from an application in angular: Array ( [{"nome":"volks","descricao":"conheça_o_novo_modelo_da_volks"}] => ) How can I convert…
-
0
votes2
answers45
viewsAJAX with sync error
Talk to the guys, all right? I have a boring problem, and as I have never used AJAX in my life I think the problem is me :( Basically it’s like this, I have a GET that returns me the following JSON:…
-
0
votes3
answers63
viewsI cannot retrieve JSON in jQuery
I’m having trouble showing off uf in the following situation: $.post("<?php echo site_url('Welcome/viacep'); ?>", {cep: cep}, function(dados){ alert(dados.uf); }, 'json' ); But when I change…
-
0
votes0
answers149
viewsError loading cascading dropdownlist
I am trying to load a dropdownlist cities according to the selected state and am encountering an error. I managed to carry out the operation in a template I downloaded from the internet, but I’m not…
-
0
votes2
answers3379
viewsHow to catch a . JSON from a JS URL
I looked at some examples of jQuery documentation, but I haven’t been able to. Code: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8">…
-
0
votes1
answer550
viewsGenerate Html second Json object
I need to receive a Json with the selection of activities and generate the HTML according to this data. I believe that it should be more or less like this, someone can give me some hint to improve?…
-
0
votes1
answer45
viewsHow to get data from a specific web page?
I aim to create a script that gets data like bugs,issues among others from the following page of Spring Framework, unfortunately I have no code to show because in fact I do not have much idea of how…
-
0
votes1
answer1120
viewsHow to authenticate Json with php by passing header
I have the following documentation, I would like to know how to do the authentication, and if possible where I can get study material that has example to perform such authentication.…
-
0
votes2
answers196
viewsBring item from an API in Swift
I am consuming a Json API and need to bring only one of the objects that it returns to me, but I am not getting, I am trying the following code: let httpStatus = response as? HTTPURLResponse if…
-
0
votes2
answers234
viewsJSON treatment returned from PHP
I would like to know how to manipulate the data JSON below. If the structure is correct, and if not, how change the structure of it? { "postagens":[ { "URLIMG":"1.jpg", "NOME":"Jhonatan",…
-
0
votes1
answer210
viewsReading in JSON file generating error
I’m trying to make a read on JSON, and it turns out what I wish on a div but my console is returned the following error, XMLHttpRequest cannot load JSON file:…
-
0
votes1
answer638
viewsCheckouturl redirection problem at Cielo Checkout
I’m developing the website of my record label with the Codeigniter framework. In it I will sell physical and digital Cds with the Cart class. I signed up for Cielo this week and I am reading…
-
0
votes1
answer272
viewsRuby on Rails - Randomize JSON variable and apply in Array
Guys, I’m having a problem that’s relatively simple, but it’s killing me. I have an array of JSON objects. This array of objects will compose another array of containing other n arrays. So far so…
-
0
votes1
answer1857
viewsCreate JSON with javascript
I wanted to know how to create a json by taking data from another json using a for var imdb = { "title": "Justice League", "content_rating": "PG-13", "original_title": "", "metadata": { "languages":…
-
0
votes2
answers275
viewsPHP returns NULL when information has accents
When I want to display the data returned by a JSON, it returns to me NULL. Only when the database information is without accents, it returns me normally: <?php include_once 'WSAps_conexao.php';…
-
0
votes2
answers2255
viewsWhere in a JSON Postgres Array
How can I select only the records that have the value "18" in this JSON? '{"filtros":[ { "tipo":"caracteristicas", "operador":"=", "valor":{"18":[12]} } ]}' I tried to use the comparison with the…
-
0
votes1
answer76
viewsPHP+JSON Webservice - Reading array
I’d like to play a JSON with PHP, where: {"data": { "nome1":João, "status":["Ativo"] } } $retorno = json_decode($jsonRet); $nome1 = $retorno->data->nome1; $status =…
-
0
votes1
answer92
viewsHow to pass a CPF as a parameter of the Nsdictionary type for a call with JSON and POST?
Hello, I have a question. I need to pass a CPF entered by the user as a parameter in my POST call to return with his data. The call works with a CPF already registered, but only works if the CPF is…
-
0
votes0
answers21
viewsPosition of an Object with a specific name within an Array
good afternoon! All right? Please help me solve the case in Jquery/XML below? I make a request for a city name ex. 'Vila Velha - ES' via JSON to a given XML, and it returns me an array of cities…
-
0
votes1
answer68
viewsJobject.Parse returning null
I’m not very suited to Youtube Api V3. But I watched a google Developers live where the google operator shows how to list the activity of a particular channel. Based on that I executed via GET at…
-
0
votes1
answer4213
viewsRead JSON file by Javascript
I need to read a JSON file by Javascript and assign each item of it to a single variable, as I did in this algorithm: function leitura(){ var arquivo = **Ler arquivo**('json/teste.json'); var…
-
0
votes1
answer95
viewsSwift Jsondecoder typeMismatch error
I’m trying to use Jsondecoder to convert a JSON to structs in Swift, so I wrote down all the Structs, reviewed it for hours, and it still returns this error. I don’t know if there’s any way of…