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
votes2
answers198
viewsAutomatically update data obtained from json api - Volley
Hello guys I have the following problem I have an application that uses Volley to get certain data json through api up to there all right it works properly but the problem is Volley cache that does…
-
0
votes1
answer342
viewsJSON return with WEBAPI
I’m creating a WebApi where his return and the following. [{ "$id": "1", "Operadora": { "$id": "2", "Contato": [{ "$ref": "1" }, { "$id": "3", "Operadora": { "$ref": "2" }, "id": 5, "telefone":…
-
0
votes1
answer835
viewsPHP Array for Json
I have this query, I need to display each column in an HTML div. Well, I need to return the data in a PHP array, pass this php array to a JS array to be able to manipulate and display them in their…
-
0
votes0
answers371
viewsExport Data to Firebase
I would like to export data to my BD Firebase. I have a service set up in Visual Studio in C# which creates a list with name and price. I need to export this data to Firebase or export a txt file if…
-
0
votes1
answer241
viewsJson_econde error parsing special characters coming from the database ( using mysql PDO)
In a bank table there are accented words or words with c. When using json_encode in php to send the result to the view, json breaks due to the parser error. How best to handle these characters…
-
0
votes1
answer603
viewsCatch a PHP JSON Via Jquery
I have 3 pages, 1-Index, where I pass some settings; 2- data_game.php, where you query and return a json with the dice; 3- game.php, The page where the json data is displayed are displayed. My…
-
0
votes2
answers91
viewsHow to change option from JSON return
How do I change the option below, based on JSON return: <select name="modalidade-frete" id="modalidade-frete"> <option value="0">0 - Por conta do emitente</option> <option…
-
0
votes1
answer42
viewsAngularjs - Changing view with json return
My app checks the state of a bulb and creates an animation in the view. I am making a request ajax with angular and in return for success I have to animate a lamp lighting, follows excerpt from the…
-
0
votes1
answer157
viewsBOOTSTRAP TABLE does not load JSON by the "data-url" parameter
I’m creating a table and trying upload a JSON file inside her, however, I’m not getting it. I’ve tried every way but there’s no way. I’m using a bootstrap template, However, I don’t know if I’m…
-
0
votes1
answer4842
viewsConvert from String to Json in Java EE
I am receiving a String in a . jsp and would like to convert it to JSON, thus accessing the values of the same. I’ve searched everything, but I couldn’t solve my problem, because I can’t access the…
-
0
votes1
answer631
viewsHow to fill in Angularjs fields from JSON return
How do I fill in selects and inputs, of each item, from a JSON return? The fields are: produtoAtrib.codigo, produtoAtrib.descricao and produtoTrib.estado. Javascript: <!-- Capturar dados do BD e…
-
0
votes3
answers1453
views$. getJSON - How to store responseJSON in a Variable?
I am mounting a Javascript object with the following constructor: var jsonResult = ""; // Inciei uma variável fora do escopo da Função function criarDicionario(lang) { this.lang = lang; this.dicio =…
-
0
votes0
answers514
viewsProblems with ajax/json and cross-origin redirect
I have an application, in flask + javascript, that needs to query a url (on a server I don’t have access to), however I get cross-origin redirect error Xmlhttprequest cannot load…
-
0
votes1
answer1116
viewsHow to write to a.json file
I have some files .json in assets. I am currently reading only in these files. Reading public String loadJSONFromAsset(String Ajson) { String json = null; try { InputStream is =…
-
0
votes2
answers471
viewsHow to leave the json of two or more object classes on the same level in Asp.Net MVC
I have 3 classes being Contact, Sector, Unit so I have Contact with one to many relationship with Sector and Unit generating Json with many layers, making it impossible for Jquery Bootgrid to access…
-
0
votes1
answer484
viewsHow do I read and store response data from an API?
I got the answer from API of CIELO below, now I would like to understand with do to read and store the values. If anyone can help me with what key information should I store in the database?…
-
0
votes1
answer529
viewsJavascript does not receive json Response from Laravel
I’m trying to get Javascript to receive the data sent by the server and play in Alert. But it always comes Undefined. I’ve looked at many topics about it on the internet and found nothing wrong with…
-
0
votes1
answer589
viewsSend form parameter to controller via ajax
I have an Index with a form, I need to fill this form and when clicking the Filter button, call the controller using ajax. Index.cshtml @using (Html.BeginForm("ResultadoPesquisa",…
-
0
votes0
answers77
viewsValidation Validationsummary in a modal receive Json message
My application has a View Create which is opened through a modal and the Controller which was a Actionresult became a Jsonresult then return Json after the request [Httppost]. The [Required] Field…
-
0
votes0
answers477
viewsExample Login with basic auth authentication using Alamofire?
I’m trying to make a login screen where I use Alamofire to make the request, but with the examples of the site Alamofire is not working. If anyone can help with an example code, I would really…
-
0
votes1
answer755
viewsReturn only the first data from a JSON and JAVA array
I have a project where I search the database via JSON, to export this data in Excel format. I am adding a new search, however I have a string array, but I cannot bring the database data back to me…
-
0
votes0
answers451
viewsCreating custom map with multiple points, manageable by Wordpress
You know how to generate a json file in wordpress?. I’m trying to create a map where custom points are manageable by Wordpress, I’m using the plugin ACF Advanced Custom Fields, where you create a…
-
0
votes2
answers387
views -
0
votes2
answers281
viewsMy program gives error when the array value is null
I have a program that takes reports from a system, I’m including one more table in the program. The data that is read, comes from a array but sometimes it is empty, and when it gives this the…
-
0
votes1
answer1496
viewsHow do I get the share list for a Facebook post?
I’m trying to get a list of shares from a post but it looks like something’s wrong; When I use the 1365084196885691/sharedpostsin the Facebook API I get the following JSON : { "data": [ { "story":…
-
0
votes2
answers222
viewsError showing return of json array in php
Error: Notice: Trying to get Property of non-object in C: xampp htdocs json get_json.php on line 6 My php code: <?php $get =…
-
0
votes1
answer95
viewsHow to get data from this Json?
I need to get the name, Distance, photo and id, which are within "date" and also need to get the route_id that is inside "ride". This will be populated in a listview that contains these first data.…
-
0
votes1
answer73
viewsError while receiving variable JSON
That way I can get my values back: var unidades: "101|102|103|104"; function getValue(key, array) { for (var el in array) { if (array[el].hasOwnProperty(key)) { return array[el][key]; } } } var…
-
0
votes2
answers1919
viewsInfinite Scroll with JSON + Javascript data
Personal talk... I’m developing an application where I get the data via JSON and template them via javascript, so far so good... I need a help to create an Infinite scroll in javascript, showing 10…
-
0
votes0
answers61
viewsError: HTTP Status 500 - org.json.Jsonobject cannot be cast to jdk.nashorn.api.scripting.Jsobject
In my java system appeared this error: I’m sweating the POSTMAN tool to study the case. HTTP Status 500 - org.json.Jsonobject cannot be cast to jdk.nashorn.api.scripting.Jsobject Code: import…
-
0
votes1
answer534
viewsI can’t "read" a JSON
I am working on the FLUIG (TOTVS) tool, and I want to read a JSON that is delivered via REST. Here is a photo of the URL (intranet): Contents:…
-
0
votes2
answers610
viewsHow to get name of objects contained in JSON with Java?
Needed to extract the name of objects contained in a JSON file, for example, show that the JSON file below has the batteryCharge objects, luminousFlux, id, temperature. But do this search without…
-
0
votes1
answer134
viewsGson does not work
I have a WCF service that returns a Json to be consumed in an Android App, as you can see in the link http://wssmartctrgtr.azurewebsites.net/WsSmart.svc/veiculo/201 However, Gson is not working on…
-
0
votes1
answer505
viewsFull Calendar does not respect end date
I created an agenda with using Full Calendar, it displays the events, but does not respect the end date, always ends the event a day before, but only in the display. I don’t know if that field…
-
0
votes0
answers185
viewsHow to recover the array of a post sent on Android to a php?
Android code: String caminho = "http://10.0.2.2/system/pages/login"; HttpURLConnection conn = null; BufferedReader reader = null; try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection)…
-
0
votes0
answers371
viewsView the json file in HTML with jquery or javascript only
Hi, I’m having a hard time solving my problem. It is as follows: i have an HTML page and a file . json i need to bring this json file in my html page using jquery or javascript I really wanted to…
-
0
votes1
answer692
viewsGet print data json in real time
Hello friends good night ! I have this code working perfectly I just need it to print the variable type every 5 seconds told me I had to do this with ajax more I do not know how to do this ! json […
-
0
votes2
answers421
viewsProblem when mounting JSON with database return
It all comes down to this image: The problem is in the JSON mount, it does not group the first result and assigns an array to the dates, as it should be in the image below: Is there a plugin in…
-
0
votes1
answer1165
viewsValidate if there is already registration in the bank before filling out the form
I have the following form: <form class="form-horizontal" action="cadastrar.php" method="GET"> <fieldset> <legend>DADOS CADASTRAIS</legend> <input type="hidden" required…
-
0
votes1
answer215
viewsWhat is wrong with the request for this script?
At a certain point I need to request a json script from the server, but I’m making some changes and I’m getting errors that supposedly shouldn’t happen. The example below works perfectly well:…
-
0
votes2
answers260
viewsCall in API does not work
I have the following code: // Script Jquery <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="…
-
0
votes1
answer373
viewsJson.parse does not convert to array
Hello, I am a complete amateur in php and javascript and after a month of fighting with two languages I had never touched got here. I am trying to pass a JSON from a request back to array in my…
-
0
votes1
answer99
viewsFetch data in one array if a specific data exists in another
My question is this:: I have 2 arrays: teste [ id: 20, campo: nada etc, id: 30, campo: nada etc, ] teste 2 [ id: 12, nome: maria, etc, id: 30, nome: joão, etc, ] All the ids will hit, ie, the ids of…
-
0
votes1
answer648
viewsHow to read a JSON Object Array with Xamarin Android Newtonsoft.Json
I am working on an app that gets a response JSON and inserts some fields of it into a textfield android, here is the code: using System; using Android.App; using Android.Widget; using Android.OS;…
-
0
votes0
answers552
viewsPlace . txt local file inside a local page
Eae, y'all. I want to warn you first that I don’t know much about java and these kinds of code, so I hope I don’t have any answers, but come on. Next, what I need to do, for a project, is to use the…
-
0
votes1
answer59
viewsDoubt JSON PHP
I’m trying to display on the screen a structure JSON which will be built by Mysql, but I would like to separate the results into groups according to the name of the fields I set in select and would…
-
0
votes1
answer78
viewsError while creating php mysql line chart
I’m trying to make a line Chart with php and mysql like this : jsfiddle based on this tutorial. Only my chart only returns empty with undefined columns: The idea is to make a graph where it contains…
-
0
votes2
answers315
viewsHow to render a json with the json_api adapter using Rails Serializer?
Oops, I’d like to render a json using the json_api standard (http://jsonapi.org/) using Rails Serializer(https://github.com/rails-api/active_model_serializers). In my controller I’m rendering…
-
0
votes1
answer159
viewsPress virtual keyboard buttons according to password
I made a virtual keyboard that generates the numbers and returns in json, for example: [0] => Array ( [a] => 1 [b] => 5 ) [1] => Array ( [a] => 6 [b] => 7 ) [2] => Array ( [a]…
-
0
votes1
answer52
viewsPost via Json getstring error
I have a code that should make a "Post" via json ,but edittext is not converting to String,and there is no error in logcat .. Anyone have any idea of the mistake? It must be something stupid I…