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
answer205
viewsI can’t capture JSON data!
Guys, I got one json here, and I used the CURL to catch him! Then I gave a json_decode, only, I’ve tried everything to get the data, but nothing works. What may be happening? I tried to get only the…
-
1
votes2
answers660
viewsReturn getInstallments Pagseguro
The getInstallments Pagseguro serves to return the amount of installments and the value of each installment, when informing a card and the value of the sale. The return I get is this: In this return…
-
1
votes1
answer683
viewsGson: Jsonobject to Jsonarray conversion error (Jsonprimitive cannot be cast to com.google.gson.Jsonarray)
I am trying to convert a Jsonobject item into an Arraylist and for that I created this function from an example I saw here in the forum: public static ArrayList<Produto> converte(JSONObject…
-
1
votes1
answer396
viewsChart.js - Type Line - JSON - SQL Server
I’m putting together my first chart. When I use date constants Chart renders normally, but when I upload sql database information I don’t have the same success. Follow code ... <div…
-
1
votes0
answers48
viewsreturn JS method
I have the following method: $scope.upload = function (files) { if (files && files.length) { for (var i = 0; i < files.length; i++) { var file = files[i]; if (!file.$error) {…
-
1
votes1
answer285
viewsRecover response from a post using guzzle
I’m trying to catch the answer of a porst json with the guzzle in a simple php. This is the function in a Laravel project that posts to a url. (I’m using var_dump to show the result in the…
-
1
votes2
answers317
views -
1
votes5
answers597
viewsJSON.stringify() method
I have a question about the method JSON.stringify(). Performing the consultation of these values in a limb tebela: { "NProjetos": [ { "idProjeto": 2, "nomeProjetos": "SGI" } ], "cargo":…
-
1
votes1
answer97
views$. getJSON not working as it should to get image Graph API
I have this following code where return comments from a post on facebook. function pegaFoto(id){ var url2 = 'https://graph.facebook.com/v2.8/' + from[id] + '/picture?fields=url'; $.getJSON(url2,…
-
1
votes2
answers210
viewsJS seeking return JSON PHP
I’m starting to use JSON and AJAX and I’m having a hard time fetching the JSON generated in php for JS. That’s all in Intel XDK. In php this way: if ($_GET['acao'] == 'buscaorcP'){ $qryOP =…
-
1
votes2
answers996
viewsMetodo Json - Return
I am developing a return of Zip Code through the post office API, the part that is in the controller is working, but I do not know if the return is correct, nor how to use in the view. If anyone can…
-
1
votes1
answer303
viewsRetrofit, Response body always null but on the server is status 200
I am implementing an Android application using Retrofit 2, the service is generic the server side is working. The problem is: Response.body() is always null, I can never catch json, even if I can…
-
1
votes1
answer1179
viewsSet Value in a @html.Dropdownlist
In an address registration form, I’d like to do the following. the guy types the zip code, then searches the zip code, and returns the data to fill in the Editorfor. So far so good, it’s working.…
-
1
votes2
answers1769
viewsGet JSON result with php
the code is complete I believe but I do not know work with json, I just need to get the results from the other days that I can only get from today’s code: $chave = 'fdhfju35'; // Obtenha sua chave…
-
1
votes1
answer378
viewsError: Array to string Conversion - Select Multiple Laravel 5
In my View I have: <select multiple="multiple" name="carga_mental[]" class="form-control select2"> @foreach($cadastros->where('key', 'carga_mental') as $carga_mental) <option value="{{…
-
1
votes0
answers90
viewsError parse Json php
I have an error when mounting a dynamic menu with data coming from mysql. Code that mounts the menu: <div class="easyui-accordion" data-options="multiple:true" style="width:100%;"> <?php…
-
1
votes1
answer179
viewsAJAX request for WCF with POST
How to make an AJAX request for a WCF service using POST? I am getting several errors with OPTIONS and POST methods that comes in the same request. Here is my code: Contract [OperationContract]…
-
1
votes1
answer2775
viewsJSON Parse error:
I have this error in JSON that I can’t understand. This is my return on the console: Syntaxerror: JSON Parse error: Unrecognized token '<' Who is informed to be on that line: resultado =…
-
1
votes1
answer328
viewsTransfer JSON table columns in Postgres Trigger
I am creating a Trigger in Postgres and would like to turn all columns into JSON to insert in a single column of table 'LOG', I would like to turn for example 'OLD.*' into JSON and add it in column…
-
1
votes2
answers439
viewsJson path to get api value
How to take the value of low of the following api: [{"idreg":"257052","code":"USD","codein":"BRL","name":"D\u00f3lar Comercial",…
-
1
votes1
answer134
viewsAutocomplete with typeahead and JSON
I have an ASP.NET MVC project and in it a script for autocomplete using typeahead with Prefetch: $(document).ready(function () { // Sonstructs the suggestion engine var ativos = new Bloodhound({…
-
1
votes0
answers107
views -
1
votes1
answer57
viewsApplication closing when consuming json
What should I do to fix this crash? My code: public class Tela1 extends AppCompatActivity { TextView textView2; String[] objetos = new String[0]; String url1 =…
-
1
votes1
answer309
viewsParsing JSON with Volley android
I have this JSON on the server side: [{"idreg":"271896", "code":"USD", "codein":"BRL", "name":"D\u00f3lar Comercial", "high":"3.2652", "pctChange":"-0.939", "open":"0", "bid":"3.2492",…
-
1
votes2
answers708
viewsFormat JSON in EJS
hello personal I am having a problem using nodejs and express, I have never used this language and I do not have much knowledge of it so I will try to be as specific as possible here. 1 I own a…
-
1
votes2
answers1547
viewsInsert data from an array into a mysql database
I get a json from an android application. This json is a java class that has been converted with Gson from java to a string. After the php web server receives this json I convert it to an array. I…
-
1
votes1
answer504
viewsextract data from a json
I got the following JSON: [{ "ItensReceitaModel": [{ "t0081_id_receita_itens": 1, "t0081_lote": "1233" }, { "t0081_id_receita_itens": 2, "t0081_lote": "123" }], "PacienteModel": { "t0031_id_pessoa":…
-
1
votes0
answers61
viewsSkip field when selecting ajax result
I have a div that has an "input" that returns via ajax the results of the query. I need that when selecting one of the user’s results, automatically skip to the next field or if you enter also skip…
-
1
votes1
answer234
viewsDatabinding for JSON.NET objects: how to implement?
My application handles a lot of HTTP requests that return JSON data. I use the JSON.NET library to manipulate them. Here is a simulated and quite summary example of the information (there are…
-
1
votes0
answers58
viewsHelp to Communicate between a Server and an Android App
I’m developing an android app based on: Add/Send DATE to Server Collect/Receive Server DATE Send and transmit location information( Geolocation ) Sharing of Profiles I was suggested to Use JSON…
-
1
votes0
answers184
viewsError message when adding data in the form generated in the Phreeze framework
In all applications generated using the PHP Phreeze framework in local environment (Xampp), when adding a record through the form, which was also generated, the following error message is obtained…
-
1
votes1
answer648
viewsExtract data from JSON within JSON that they see from a Web Service serving an Android APP
Good night, guys, how are you? I am developing an Android APP and it consumes data from a webservice, but I’m having trouble bringing some information to the APP. This is the JSON I return to my…
-
1
votes5
answers1205
views -
1
votes3
answers218
viewsProblem with JS/Jquery/JSON/AJAX
I’m having some problems with JSON in my application and wanted to see if you can help me, please. The situation is as follows: I have a method in my controller that searches some items:…
-
1
votes1
answer575
viewsHow to use an ajax return in any part of the script?
I have a Json that is returned via ajax, I wish I could manipulate this return throughout my script, outside the scope of Ajax, so I don’t have to do a function that does everything within this…
-
1
votes1
answer72
viewsGetting specific property of a JSON object
I have the following JSON: { "2016": { "mes": { "2": { "dia": { "5": { "-KcENENmSJcZp56clzz5": { "descricao": "teste", "valor": "99" } } } } } }, "2017": { "mes": { "2": { "dia": { "5": {…
-
1
votes1
answer75
viewsWhy doesn’t this function work in Mobile Browser?
I’m using the code below to search for data in a json, and it works perfectly in Chrome and Firefox, but in mobile browser it doesn’t work, and just doesn’t return anything: function…
-
1
votes1
answer417
views -
1
votes2
answers1382
viewsLaravel 5.3 with Ajax
Dear friends, I ask your help to help me solve an Ajax problem with Laravel 5.3 I am facing problems with Internal Server Error 500, and looking for information about it, it may be a problem of…
-
1
votes1
answer1133
viewsCreate dynamic inputs from a json object
I have a form that the user can add several languages who can speak, this form consists of a dropdown and a button to add the respective language. At the moment I click on the add button it adds new…
-
1
votes1
answer954
viewsCreate Json with a large amount of Data and Return with Webapi
Scenario: I have a Webapi that executes a method in my service layer that executes a query either returns 500k result lines, containing 90 columns. Method that makes the query and traverses the…
-
1
votes1
answer51
viewsI am unable to display the array data
when I type the console.log(Response) command it displays all the information in the browser console, but for some detail, I’m not able to display the data inside my div which is in the html snippet…
-
1
votes1
answer409
viewsSwift 3/JSON - How to capture List of objects inside an object?
How do I access a list of objects within another list of objects? I can capture these objects peacefully, but I’m having trouble capturing objects within this list. This is my JSON: In this case I…
-
1
votes0
answers154
viewsList json data in <ul> <li>
Guys, I have a system here that it takes the data in a JSON and lists in an HTML page, but it has the list as follows: it displays only one title and every time I update my browser it displays the…
-
1
votes3
answers404
viewsjQuery - How to filter a JSON file from an external link?
I have a headache that is: I need to make a filter by names of the following JSON (summarized)... [ { "index": 0, "age": 25, "eyeColor": "green", "name": "Peck Murphy", "gender": "male", "company":…
-
1
votes1
answer76
viewsYou doubt making a Json
Hello, I have the following Json. And I would like to show the Total value in a 'p', I am using the datatables to display the values of the "date". I am using the…
-
1
votes1
answer348
viewsHow to add elements to an array
Come on guys, I’m sure it’s a very simple question, but I can’t do it. First scenario - I have the following array: $century = array( 'decade' => array( array( 'year' => '2017', 'months' =>…
-
1
votes1
answer74
viewsTomcat 9 - application/json was not found
Greetings, I am developing a WS in Jersey/Restful which is working properly in Glassfish but in Tomcat I get the error when trying to consume the service. GRAVE: Mapped Exception to Answer: 500…
-
1
votes0
answers44
viewsHow to store previously checked Checkboxes values?
Hello. I’m making a system that allows access to folders. I search the folder, which has its id and permissions saved in the database, select it, loading its subfolder and checkboxes are loaded to…
-
1
votes1
answer694
viewsProblem when making request with ajax in Laravel 5.4
I am learning the web language for creating my website and using the Laravel 5.4 framework, and having problems with sending forms with ajax. Every form I submit, returns me the error: Unprocessable…