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
answer687
viewsJson in Jquery returns Undefined
Although I have looked at all the various questions about it, I cannot make my json work, the code is like this: $.ajax({ url: '<?= base_url('login/Pesquisar'); ?>', type: 'POST', data:…
-
0
votes1
answer99
viewsSerialize the result of a JSON query?
I am adding the result of a query to an array and am trying to serialize to Json. I’m not getting my printing right JSON, could help me? My code: <?php ini_set('max_execution_time', 123456);…
-
0
votes1
answer77
viewsForeach returns no value
I have a API that returns some results, but with your help I managed to make the code work but after a few days the code stopped. I have this code: <?php $email = $_GET['email']; $nome =…
-
0
votes2
answers519
viewsPassing Parameter in URL using JSON + AJAX
I am studying Javascript and would like a support from you. I have a file I called getPagamentosMaioresQue.php, this file has the following syntax: <!DOCTYPE html> <html> <head>…
-
0
votes2
answers715
viewsJSON format in Localdate field
Personal have the record sequinte being returned by a query using SpringData: page = grupoService.findByNomeStartingWithOrderByNomeAsc(2, pageable); If I run the following code:…
-
0
votes1
answer122
viewsView ng-model’s JSON as the selected dropdown option
Hello, I’m having doubts if that’s possible. For example, I have a dropdown with a JSON array of courses on ng-options: <select name="curso" ng-options="curso.cursoId.sigla + ' - ' +…
-
0
votes1
answer659
viewsPopular table with data according to input range values
I need to popular some li that form a table, according to the data placed by the user in the input range, for example if the user choose 200.000 would like to return me 3 tables with suggestions of…
-
0
votes2
answers94
viewsMultidimensional Json for Object in C#
I’m learning c# and I’m having a hard time passing a multidimensional json to Object by doing an deserialize. I don’t really know how to fix it. See my json string json2 = @"[ { firstName: ""joao"",…
-
0
votes1
answer78
viewsFailure to use JSON on INTEL XDK
I’m making an application on INTEL XDK, in which I need to connect to the database. I created PHP to return with JSON and on Intel, I made the function to return such data. But the application is…
-
0
votes1
answer3286
viewsPopular table with data from a JSON
Hello, I need to popular a table according to what the user chooses in an input range, example in the range he chooses the value R$200,000 ai at the end of the form fill returns me a table (made…
-
0
votes1
answer163
viewsXamarin - Accessing API that returns JSON
Next, I am VERY new to this API issue. I created my first web application . net Framework 4.5.2. I created it very standard (according to VS 2015), and created a controller for testing…
-
0
votes0
answers27
viewsFailure to connect to IBM Language Translation via PHP Curl
I have a problem that I can’t solve. Basically I need to translate a string into Português for English. This is the code I was able to develop: <?php class CtrlTranslate{ public function…
-
0
votes0
answers173
viewsReturn Json api accent
I’m wearing a api which returns data in json. All the accents are coming modified. J\u00FAnior With php, what function I can use to reverse this situation? **Though he had already torn it apart, he…
-
0
votes1
answer161
viewsInclude data in Json beyond what comes via Mysql
I am building an API in PHP/Mysql that will feed a hybrid APP, also under construction, via Ionic. Data transit is via Json. I guess I’m new to Ionic, Angular, JS, and Json... Reasonable in PHP and…
-
0
votes1
answer242
viewsTranspiling ES6 to ES5 using Babel
I have a package.json file set up to take all js files from a directory and join them into a new file, transpiling to ES5. However, it is only creating a new file and unifying all js files from the…
-
0
votes1
answer465
viewsRecover mysql php query with ajax
Hello! I would like a help to know how to recover data from php mysql query and present it on the page that made the request via ajax, this code at the moment presents error Cannot read Property…
-
0
votes1
answer291
viewsonMapReady performs faster than the function that recovers the location
hello, I’m trying to use map help in my app. I recover the coordinates through Json, the problem is that the function that leads to the coordinate (onMapReady) performs faster than the function that…
-
0
votes1
answer112
viewsError while doing image url GET on Json Android
I have the following code: private class DownloadJsonAsyncTask extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() {...} @Override protected Void…
-
0
votes1
answer524
views -
0
votes1
answer190
viewsHow to transform a JSON that contains an object array into an object list?
Good evening. I have the following JSON: { "_id": { "$oid": "3432fa43242" }, "posts": [{ "thread": { "uuid": "2911da", "url": "http://www.google.com", "site_full": "opiniaoenoticia.com.br", "site":…
-
0
votes1
answer363
viewsError listing items using JSON and PHP
I am inserting items in a list through a SESSION in PHP, these items will be read in another page using JSON, but is giving error and I am not able to solve. session_start();…
-
0
votes1
answer46
viewsInsertion of multiple GET lines automatically php
I have several lines like this: http://192.168.0.1/feed/data.json?id=71667&start=1426031940000&end=1426064520000&interval=30…
-
0
votes1
answer98
viewsDealing with JSON differences because of previous versions
How best to deal with the following problem: I have an iPhone and Android mobile app that sends and receives data to a Webservice using JSON. My application needs to work offline, with users being…
-
0
votes4
answers2211
viewsJSON Object Object Object
I need to create a json object from scratch where each key has several values/values example: '{"name":["daniel","dias"],"morada":["joao","allen"]}' For that I am executing this code several times,…
-
0
votes1
answer60
viewsProblems with Conversion of Array to Swift 3
With the swift3 update I’m having the following error "type 'Any' has on the Members subscriber", I’ve seen a lot of questions on the subject and tested most of them but without success. The code…
-
0
votes0
answers52
viewsJquery/Ajax/Json - Getting to Json
I have an array and need to get to it with jquery/ajax, the problem is that I do not know how to get to it, it is being created by php $json = Array(); then make an array push like this:…
-
0
votes1
answer1580
viewsReturn the data to the View using Json.net or javascript-Asp.net mvc
I need to return the data to fill in a script, public JsonResult BuscaImagens() { List<Object> resultado = new List<object>(); resultado.Add(new { IdImagem = 1, URL =…
-
0
votes1
answer193
viewsBookmarks in google maps searching database
How to fill state markers in google maps, searching the latitude, longitude and title data of a database. Today I already have this function working, but the state data are fixed in a javascript.…
-
0
votes0
answers785
viewsRest API in PHP - how to work with routes terminated in . json?
I am creating a Restful web service in PHP. I am not using any framework. I am following the recommendations of standards or best practices for developing web Apis, suggested by the White House. On…
-
0
votes1
answer134
viewsCan I use JSON to save Arraylists in Shared Preferences?
I’m developing an app on a college project and I’m creating the control part, I won’t mess with the server part for now because I don’t know much about. I’m creating functions to generate some…
-
0
votes1
answer103
viewsSwift json deserialize
Hello, I have the following code to deserialize a json: let urlFinal = URLSERVIDOR+"/Geral/consulta?idcliente=\(id)" let jsonUrl = urlFinal let session = NSURLSession.sharedSession() let shotsUrl =…
-
0
votes1
answer121
viewsUndefined index: stream
I am studying php and can not understand the reason for this error. It executes the code as it should until a certain part. Basically I’m trying to use a database where users will insert Twitch…
-
0
votes1
answer43
viewsreturn help with Json
How to return array with these results in php points total 25779 HTML 1793 CSS 2666 Design 216 C# 0 Databases 0 $minhaarray [] = array( "points"=>$event->total, "name"=>$category->name,…
-
0
votes1
answer1046
viewsHttprequest php error
I cannot use the script because of the Httprequest class I already downloaded several classes and always error: (https://dev.infobip.com/docs/fully-featured-textual-message) $request = new…
-
0
votes1
answer217
viewsHow to get Promise in Service and only send the uploaded data to control?
I have a json file with the following sample structure:…
-
0
votes1
answer55
viewsHow do I filter my data?
Good. I have a BD called vehicles, and I’m using PHP + Json for the listing. But now I need to filter them and I don’t know how to do it. I was thinking of using html but I’m not getting it either.…
-
0
votes1
answer454
viewsHow to format Json code in HTML?
Good afternoon, you guys. I need some help. I’m using the API: JSON Wordpress API and it releases . content that returns the post’s HTML code. How to take this json that contains HTML code and…
-
0
votes0
answers131
viewsError to the popular Google Chart
The following error appears Invalid data table format: column #0 must be of type 'string'. Right now I have the return in json this way:…
-
0
votes2
answers1990
viewsHow to insert items from a JSON file into an html table
I have this JSON file: var identificacao = [ { "nome": "João Silva", "cpf": "444.111.777-00", "rg": "44.66.55.00-1", "nascimento": "28/06/1994", "endereco": [{ "rua": "Av. Marechal Tito", "numero":…
-
0
votes0
answers43
viewsWhy is the json not being deserialized?
I have the following JSON {…
jsonasked 7 years, 11 months ago Oziel Guimarães 41 -
0
votes1
answer589
viewsRequest without @Xmlrootelement
I’m doing a simple user registration with Java and Angularjs. My javascript request looks like this: $http({ url: "rest/user/register", method: "POST", data: $scope.newUser }); In java, I have a…
-
0
votes0
answers186
viewsLaravel with JWT not authenticate by header
I’m using the Laravel 5.3 along with the JWT, but when I send the authentication by header it returns to me that I am not authenticated and I forward the token by parameter it displays me the…
-
0
votes0
answers159
viewsI can’t get the value of an object inside an ARRAY
I am developing an application to read a wordpress base. I have many posts that are separated by category. I’ve been able to show the categories in the view but when I select a specific category it…
-
0
votes2
answers297
viewsHow to list array values (Angularjs) using PHP?
I would like to know how to do the listing ("foreach") of my array $scope.items within PHP, so I can work individually with each entered value. Javascript: var app = angular.module('app', []);…
-
0
votes1
answer57
viewsPass Volley api data to another screen
I have an application that gets given via api using Volley My code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes0
answers275
viewsReturn a method value (JSON Array)
Hello, I have a method that fetches the URL through JSON and wants to return this method value to mainActivity, to show. package com.example.fabio.domoticaa; import android.content.Intent; import…
-
0
votes1
answer336
viewsError returning from get from Delphi to php
Upload the following get in php http://site.com.br/Autenticacao/index.php?conteudo={"Login":"[email protected]","Senha":"123","Posicao":{"Latitude":"-18.8693459","Longitude":"-41.955664"}} And I get…
-
0
votes2
answers223
viewsReceiving JSON Data - PHP
good afternoon. I tried to do some research here, but I couldn’t find what I needed. I am working with JSON, and received the following return string: { "success": 1, "return": { "100025362": {…
-
0
votes2
answers1021
viewsProblem with Json_encode
I have the following code? if($result = $mysqli->query($query)){ while($row = $result->fetch_array(MYSQLI_ASSOC)) { $temp[] = $row; } } $result->close(); foreach ($temp as $x) {…
-
0
votes1
answer168
viewsMysql PDO function for json
I’m taking the first steps in MySQL PDO and I have 2 doubts in my code. A first related to the efficiency of the functions. The second doubt is related to the return of results of a database to…