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
-
4
votes2
answers7390
viewsHow to save JSON file with Node.js
I want to make a website to test some things. The site is running on my home server done with Wamp. I was told that I could make a small database using JSON files. I have a JSON file in the website…
-
4
votes1
answer265
viewsFilter JSON from Facebook Graph Api Feed
The JSON that the Graph API returns from Feed of a page using the address "Graph.facebook.com/ID/feed? access_token=_ACCESS_TOKEN_" displays the Feed complete, but I just wanted the posts made by…
-
4
votes3
answers610
viewsReload after update
I am making a status change in my database using $.getJSON, is working, but in return I need to update the div where the data is and I am not able to perform this task, see the code below:…
-
4
votes1
answer123
viewsHow should I communicate with DB? Technology recommendations
I’m with an Android project, in which I’m trying to do everything using free platform. I need the devices in the field to communicate with the database, and I heard something about JSON and Web…
-
4
votes1
answer589
viewsJSON cut when sending by post with AJAX
I’m using Angular to register in the database, I take the data of my inputs put into an object and turn into a JSON and send by post, but it turns out that my JSON is cut and I don’t have a clue…
-
4
votes1
answer204
viewsConvert objects: from literal syntax to prototype types
Given a type defined in javascript, for example: var Point = (function () { function Point(x, y) { this.x = x; this.y = y; } Point.prototype.dist = function () { return Math.sqrt(this.x * this.y +…
-
4
votes3
answers657
viewsHow to make the page load only after the return of getJSON?
I am recovering a list in JSON using the function jQuery.getJSON: http=jQuery.getJSON(url); This code returns the object perfectly, but the request takes longer than the loading time of the page…
-
4
votes2
answers6760
viewsError " An error occurred while Processing your request. "
I developed a MVC C# application for JSON reporting in my localhost it works normally, to query because it takes 2 to 3 databases depending on the report, but when I host the application in Azure,…
-
4
votes1
answer9073
viewsSend and receive image via Webservice
I’m developing an app where I need to convert an image to JSON and send it to a Webservice. Later I will need to perform the reverse path, IE, receive a JSON image of a Webservice to present it to…
-
4
votes4
answers3597
viewsjson returns null with special characters
Today I came across this mistake: When trying to encode an array for json, some values return null. I arrived at the solution before using the function json_encode() pass all strings to UTF-8 with…
-
4
votes2
answers11772
viewsJSON does not accept accentuation
Friends, I have a problem, the string that has accent not being able to catch it using JSON: $imagens = array(); $sql = mysql_query("SELECT * FROM texto_index"); while ($row =…
-
4
votes2
answers2303
viewsHow to check if an answer (date) is a json
How can I check if a result (date) coming from an ajax request is a json or not? I tried this code but did not succeed var obj = $.parseJSON(response); if(obj.avatar) { } else { }…
-
4
votes1
answer707
viewsPass values from a JSON to html via Jquery
I am trying to take the JSON data from Twitch and manipulate it in html, in case I wanted to put together a simple list with the online channels, using Alert it shows the channels but I thought to…
-
4
votes3
answers10027
viewsHow to show values stored in JSON in Javascript
Has a variable in a file JSON which is called "valore" and it is assigning the values:2.51,2.56,2.87,2.89 and 2.94. The string of this JSON is being displayed in a DIV. How do I show only these…
-
4
votes2
answers1595
views -
4
votes1
answer2075
viewsHow to use Tfdjsondatasets in Delphi XE4?
Explanation Today I was seeing an example called FireDACJSONReflect in the Samples folder of Delphi XE6 and I saw that it was very interesting how the server communicated with the client and I would…
-
4
votes1
answer723
viewsjson_encode - Invalid JSON
I created a PHP code to fetch information from a database (Mysql) and "transform" into JSON. I used the json_encode for such. The output JSON seemed to be correct, but when I use some JSON…
-
4
votes1
answer611
viewsHow to read a Json without knowing what is inside it or the amount of data?
I’m developing a dynamic form for Android in which you get a Json file and create the forms. Everything is automated, except for the part where I have to pick up a string in Json’s hand. There is a…
-
4
votes1
answer691
viewsKnow the JSON object name
I have a JSON and need to know the name of my object and the values it has, for example: {"Pessoas" : [ {"Nome": "Welson Play", "Idade":19}, {"Nome": "Stephanie", "Idade":15}, {"Nome": "João Pedro",…
-
4
votes1
answer409
viewsStreamline Ajax Jquery Autocomplete with json data
I want to make suggestions dynamically with this API. How to streamline the suggestion file by listing data from the mysql database? Download the DEMO:…
-
4
votes1
answer315
viewsHow to use Javascript JSON to recover C result?
I learned that JSON is used to communicate between systems. So it is possible to communicate with C, recovering variables through a JSON generated by the code and sending through the Javascript AJAX…
-
4
votes2
answers16723
viewsPicking values with names in JSON
I got this one JSON: {"nome_rede":"lucasl","nome":"Lucas Lima","imagem":"http:\/\/intranet.supersoft.com.br\/novo\/usuarios\/fotos\/lucasl.jpg"} How do I catch him using AJAX? So far my code is like…
-
4
votes2
answers621
viewsProblems with $http and ng-repeat Beginner Angularjs $$hashKey
Hello I’m a beginner in Angular and I’m finding it very cool, my problem is this: I have an ng-repeat that works fine when I get the data source of a javascript variable like this: var alertsq = [ {…
-
4
votes1
answer1107
viewsHow to handle Ajax requests with business error?
I searched the Internet and I still haven’t found an answer mature enough for a problem. I have an Ajax request and taking out errors released by the application as a possible connection drop, for…
-
4
votes4
answers1081
viewshow to filter an ngRepeat loop according to the value of one of the contents of an array
Well, the content of a page on my site is generated from the following JSON template: [ { "company":{ "name":"Nome do Cliente", "url":"#" }, "client":{ "name":"Projeto", "url":"#" }, "tags":[…
-
4
votes4
answers2080
viewsHow to capture elements in a json structure using javascript
I need to get some elements inside a JSON structure with Javascript. I can get unit elements like this: alert(response.paymentMethods.CREDIT_CARD.options.MASTERCARD.images.SMALL.path);…
-
4
votes1
answer380
viewsHow to Display Various Values of a JSON in PHP
How can I display all the values of a JSON in PHP ?? Let me give you an example, I use the Code below to request JSON $json_file =…
-
4
votes3
answers1203
viewsHow to update the table (bootstrap-table) via JS after registering?
After registering (within a modal), the table should be updated automatically. But I’m not getting it. NOTE: Languages I am using is PHP and JS. In jsfiddle, there’s a small demo, in the JS tab is…
-
4
votes2
answers2915
viewsHow to consume this JSON with Javascript?
How do I consume that URL using Javascript? https://client-demo-accounts-2.bootstrap.fyre.co/bs3/v3.1/client-demo-accounts-2.fyre.co/379221/MjAxNjAxMjcxMjQyOmRlc2lnbmVyLWFwcC0xNDUzODQwMjgxODk0/init…
-
4
votes2
answers10740
viewssimple array arrays for json_encode
I need to create a json document, with the following structure: [ { "Name": "Lacy", "Email": "[email protected]" }, { "Name": "Chancellor", "Email": "[email protected]" }] Currently,…
-
4
votes1
answer893
viewsI cannot ignore fields when trying to return them as Json causing "Infinite recursion"
I’m working with Hibernate, Spring and Jackson (to ignore fields) and when trying to return the class User in a json request java returns error due to mapping @Onetomany and @Manytoone with class…
-
4
votes1
answer476
viewsREST - Http x Json
I did some research and have some questions about REST: Http is Rest? JSON and XML are only the return format of a Rest operation? REST x Web Services: are the same things? SOAP would be the…
-
4
votes1
answer387
viewsFile . json is not created in Angularjs
I created a controller and a service. Follow them, to exemplify what is happening: Controller eventsApp.controller('EditEventController', function EditEventController($scope, eventData){…
-
4
votes1
answer448
viewsFile in JSON format
And oh guys all beauty? I’m having a rather silly question, but I couldn’t find an answer. I’ve been going through some websites and I saw that instead of them calling a request $.AJAX on the server…
-
4
votes1
answer603
viewsHow to get the string of a parent Json or a Json in array format?
I got the following JSON: String json = "{\n" + "\n" + " \"Pessoas\":[\n" + " {\n" + " \"NomeHomem\":{\n" + " \"Idade\":1\n" + " }\n" + " },\n" + " {\n" + " \"NomeMulher\":{\n" + " \"Idade\":true\n"…
-
4
votes3
answers5089
viewsHow to pass a json containing data array to Php?
How would it be possible to send the following Json to Php without losing the "tabLinhas", Where do you have an array!? The original Json consists of a single line, I put this way here only to…
-
4
votes2
answers392
viewsVariable value Undefined js
I am developing a mobile application with Cordova, in the mobile version there is a BD that keeps checking if there is any change in online BD, if there is it updates in mobile follows below my…
-
4
votes1
answer388
viewsError importing Dynamic Json via Angularjs
Hello, I’m having trouble importing this Json and others, I don’t know what I might be doing wrong in that... <html> <head> <script…
-
4
votes2
answers629
viewsMultiple Access-Control-Allow-Origin domains
I have a page that serves some data in JSON format based on the data received from the database, but I need to free access so that the mobile version can also obtain such data, as I can put more…
-
4
votes2
answers1768
viewsSingle quotes are allowed in JSON?
I can represent a JSON object this way? { 'helloWorld': true }
jsonasked 7 years, 8 months ago Marcell Alves 2,453 -
4
votes3
answers1481
viewsHow to create a mini database written in php using a text file in json format
I was in need of a personal mini database written in PHP to store some internal data of my site, where I would create new properties, change them and delete later if necessary. In the example below…
-
4
votes1
answer930
viewsHow to authenticate on site via Httpurlconnection to access the JSON method?
I have an Android application that must request a JSON from a web application, however to have access to the method it is necessary to login to the site. How do I perform this identification via…
-
4
votes1
answer928
viewsHow to show table in return JSON?
Accurate, when returning from an insert pass parameter to a page and load it into a div specific, I tried something like this: var formData = new FormData(this); $.ajax({ url: formURL, type: 'POST',…
-
4
votes2
answers709
viewsJsonarray in Jsonobject: Json.typeMistach error
In a web search I discovered that the Json.typeMistach error was due to I’m getting one JSONArray and trying to arrow it into a JSONObject. Turns out I can’t fix it, the mistake persists. Could…
-
4
votes2
answers376
viewsWhy is JSON not considered a markup language? And why is XML?
I was researching the differences between JSON and XML so I read that XML is a markup language but I didn’t read anything about JSON.
-
4
votes1
answer72
viewsPDO without JSON support
I need to return a line in JSON, but the PDO does not seem to give full support to operations. Always the error message type 245. PDO::prepare(): Unknown type 245 sent by the server. Please send a…
-
4
votes1
answer553
viewsHow do I use Atlassian Connect to get Jira data and generate a JSON?
I need to make a script to get some data from Jira and I believe that for that you have to use the API Atlassian Connect that uses a server in Node.js. However, I don’t want to manipulate the data…
-
4
votes3
answers4534
viewsConvert json object in php
I’m trying to create a class that saves objects like Conta in a json file, however, when saving to the file, the information of the object is not saved, it is just this: [[],{}] My class reading and…
-
4
votes2
answers71
viewsFailure to compare dates before saving to the bank
I’m trying to do a date validation, if the date DataInicial is smaller than the DataAtual, that is, can not be retroactive the script should return me an error message with json_encode not allowing…
-
4
votes2
answers1776
viewsCreate a table with sorting using Datatable
I am creating a table and need to give option to sort the table by the field you prefer. I tried to use the datatable the data is filled correctly in the table but when I click on a header to sort,…