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
votes0
answers1665
views -
0
votes0
answers372
viewsReceive PHP response in AJAX
Friends, I am developing a script to send an email according to the choices of the users. Below is the ajax that makes the upload: $.ajax({ type: "POST", url: "inc/enviar.php", /* endereço do script…
-
0
votes0
answers108
viewsError making POST from a json to a Web API
It’s giving me an error when I try to make a POST to the API that error is: System.Net.Webexception: Remote server returned an error: (405) Method not allowed. The code I’m using is: var…
-
0
votes2
answers166
viewsHow do I scroll through the following array using Avascript?
json [ { "idDisciplina":"1", "0":"1", "Nome":"Matematica", "1":"Matematica" }, { "idDisciplina":"11", "0":"11", "Nome":"Ciencia", "1":"Ciencia" } ] script $.ajax({ url: "includes/disciplina.php/",…
-
0
votes1
answer438
viewsSelect with php javascript ajax json
<script src="http://yui.yahooapis.com/3.12.0/build/yui/yui-min.js"></script> <script src="js/jquery-3.2.1.min.js" ></script> <script type="text/javascript"> function…
-
0
votes1
answer1064
viewsjQuery Autocomplete Uncaught Typeerror: Cannot read Property 'length' of Undefined
I’m using jQuery autocomplete to take data from a JSON and show them on as suggestions in the form during typing. It turns out that JSON is not in the format expected by the plugin, so I decided to…
-
0
votes0
answers112
viewsCreate an instantaneous modal, and Depóis destroy it
I have in my system many parts where the user double-click on a certain line, and is loaded the corresponding action within a Bootstrap modal. In the current method I use, there are three modal…
-
0
votes1
answer242
viewsPicking up a json string
I’m having doubts I’m consulting an api and it returns me this: "{\"optimized\": null, \"optimized_slo\": null, \"normal_slo\": {}, \"normal\": {\"estimated_cost\": \"28.40\", \"distance\": 10198,…
-
0
votes3
answers51
viewsInterpret data from an external file to use in Autocomplete
I have the following file: index php. <script type="text/javascript"> function montaAutocomplete(source) { $( function() { var availableTags = [ source ]; $( "#autocomplete" ).autocomplete({…
-
0
votes1
answer87
viewsJavascript array with JSON object
I have the following objects: var category = [ {"category" : "fruity"}, {"category" : "Cakes"} ] and var products = [ {"description" : "Apple", "price" : 12.99, "category" : "Fruity"},…
-
0
votes1
answer387
viewsJSON returns STRING instead of ARRAY
The following code is returning an array as a string and therefore I cannot distribute the data to popular Flot Chart. The PHP code: <?php include_once("config.php"); $viagemid = $_POST['id'];…
-
0
votes1
answer92
viewsCreate Chartjs chart inside another js file controller
I am trying to solve a problem with my web page. Below I put some information about it: The page is to generate graphs in different models (area, line, bar); The user, from a select chooses which…
-
0
votes1
answer389
viewsAndroid - org.json.Jsonexception No Value for
While running the application I received a Jsonexception No Value for error { "time": "05:07:18 AM", "milliseconds_since_epoch": 1504588038515, "date": "09-05-2017" } I know there are many errors…
-
0
votes0
answers163
viewsProblems sending JSON by POST when compiled
I am with an application whose one of the modules is responsible for sending a JSON to an online API that synchronizes the data with a back system. When this module is run or debugged into an IDE,…
-
0
votes1
answer9605
viewsExporting data in json or txt, in python?
I need help to learn how to export data from an object. At first I need to export in type "txt" and/or "json", but I could not succeed in either. The code: #coding = utf-8 import json . . . def…
-
0
votes1
answer30
viewsWrong stored and displayed information
Hello, I have the following code: var marcas = { nome: '', fipeId: '' }; var marcasVet = []; var select; $.ajax({ dataType: "json", url: 'http://fipeapi.wipsites.com.br/carros/marcas', success:…
-
0
votes1
answer220
viewsHow to generate an Insert string from json
I am new and javascript and need to generate a string from Insert to sqlite with this string: { "InputFile" : "PER_02.inp", "RunTime" : 1492167103, "Reservoir" : "5", "Elevation" : 400.000000,…
-
0
votes1
answer611
viewsTake input values inside datatable
I own in an HTML a datatable and on each line I have 3 inputs (text, datepicker and select) and a button, which will send to PHP, to record what was typed or selected in inputs from that line. What…
-
0
votes2
answers585
viewsJsonresult display Displayname from an Enum
I’m having a problem returning the Displayname of an Enum I have the following Enum public enum TipoPessoa { [Description("Pessoa Fisica")] [Display(Name = "Pessoa Fisica")] [JsonProperty("Pessoa…
-
0
votes0
answers59
viewsHow to store Json on host site via Ajax?
<!DOCTYPE html> <html> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <title> teste </title> <body…
-
0
votes1
answer199
viewsHow to configure Ajax to submit date with 2 variables
I’m developing an app for users to vote on products. Technologies used Jquery plugin rateit, ajax and PHP. However I am having a problem with JSON, the configuration for 2 variables is giving the…
-
0
votes2
answers1017
viewsPull data in JSON
I have a question about JSON. I need to pull the information inside the array. However it does not have the reference that would be the name of Champion that is within the date that I need to…
-
0
votes1
answer109
viewsJSON Return Giving Error
I’m doing a service to get the return JSON in an Android application, so far so good, but I don’t know where I’m going wrong when it comes to getting the value. The structure of JSON is this:…
-
0
votes1
answer164
viewsJson problems with Vue.js
note below; My page <!DOCTYPE html> <html> <head> <title>My books</title> <link rel="stylesheet" type="text/css"…
-
0
votes0
answers2043
viewsUnexpected end of JSON input error
I am working with Ionic 3, picking up data through a Restfull API, using PHP and Mysqli, but returns this error: Unexpected end of JSON input. I believe the error is in the API. Follows my code: In…
-
0
votes2
answers411
viewsHow to display JS objects in view
There’s already a question from our friend Vinicius Scaramel with this problem, however there is no solution, so come on: I’m bringing an object in shape JSON via http.get in the Ionic, (using…
-
0
votes1
answer430
viewsObject list for another Activity
I’m trying to save a list of objects with sharedpreference and gson. And the idea is that I can upload this list to a Listview, I ran the tests and when it goes to listview it only loads the…
-
0
votes1
answer1529
viewsRecover json ajax data
I have this request: <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#ajax_form').submit(function(){ var dados = jQuery( this ).serialize(); jQuery.ajax({ type:…
-
0
votes1
answer37
viewsPhp variable for javascript
I am using Highchart to create charts, however I am not able to pass the value of data through a php variable: series: [{ name: 'Tendência', data: <?php echo $encodeValorTendencia; ?> },{…
-
0
votes0
answers60
viewsUse two different headers for two different exits in the same call
At a certain point, I need to generate XLS files on my system, and use the following header for output: header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition:…
-
0
votes0
answers262
viewsPass array object to API and save to Database
I’m using Ionic 3 and I want to save the data of an object in the database. In the API is running the query and saving null in the database, I imagine the way I am sending the object is wrong.…
-
0
votes0
answers102
viewssave image from jquery with json_encode from PHP
I have a question when I will save the images coming from jquery with PHP json_encode. I have this jquery code to get the images $('#drag-and-drop-zone').dmUploader({ url: 'upload.php', dataType:…
-
0
votes0
answers650
viewsMaxreceivedmessagesize (6553 6) was exceeded. How to resolve?
I am consuming a web service by SOAP, but the following message is displayed: The maximum quota size of incoming messages (6553 6) was exceeded. To increase the quota, use the Maxreceivedmessagesize…
-
0
votes0
answers1832
viewsUpload photo and json in the same request - Postman
I’m having trouble sending in the same request a photo and a json by Postman. I need to send the profile photo of the user and at the same time receive a json with the data from it. //Instância da…
-
0
votes1
answer3709
viewsJSON Data format
Hello personal I have a webservice that should fetch some infections in the database and return a json object and I’m having problems with date. here is the object import…
-
0
votes2
answers1900
viewsAccess Free Market API by Delphi XE5
I’m trying to make an application in Delphi to integrate ERP to the Free Market, and when using REST Debugger (for testing) this returning me an HTML and not Json, someone has already gone through…
-
0
votes1
answer198
viewsPerl - Pass JSON data to variable and compare with IF
Good morning, I have a request that I make in an API using GET (LWP::Useragent), the data is returned in a JSON, in JSON are returned up to two results at most as follows :…
-
0
votes1
answer965
viewsArray in Ionic of json file
I have the following JSON document "descritores": [{ "descritor": "texto..", "resultado": [{ "MediaTotal": "81,16" }, { "MediaTotal": "81,16" } ] }, { "descritor": "Texto 2..", "resultado": [{…
-
0
votes0
answers40
viewsSearch and List through Json_decode
I have the following tables: When doing the brand search through the input post, I need to list all products that contain the selected brand id. Below is my passage. $marca =…
-
0
votes0
answers77
viewsGroup tables and return to json
I have this function that returns the data to Ajax: public function get_agenda(){ $this->db->select('prospect_agendamento.age_data_agendado_para as start, prospect.pro_nome as title,…
-
0
votes1
answer36
viewsLogin with AJAX and PHP with database(Why is it wrong?)
$(document).on("click","formlogin",function(evt) { $.ajax({ type:"GET", url:"http://localhost:8080/ProjetoXDK/appModelo/www/php/entrar.php", data:{ var cpf = $('#cpf').val(), var senha =…
-
0
votes2
answers148
viewsComplete fields without user having to give TAB
When selecting the product in the list of suggestions Autocomplete I have to give TAB to complete the next fields, I wanted that as the Description field was filled in the other fields were filled…
-
0
votes1
answer5430
viewsRun Curl command in an HTML/JS application
I have zero experience in API, JSON, Ajax, Curl, the most I learned in college was basic HTML, CSS, JS and PHP, I’ve killed myself searching and watching video, but with no one with experience to…
-
0
votes2
answers178
viewsComplete fields
When selecting the product in the list of suggestions Autocomplete I have to give TAB to complete the next fields, I wanted that as the Description field was filled in the other fields were filled…
-
0
votes1
answer35
viewsConflicting functions when returning array
I have two functions that are triggered from the moment the user enters a product code, but they are conflicting, can anyone tell me what to do ? For, within the JSON, in Inspect => Network Tab,…
-
0
votes1
answer220
viewsCapture field of a complex JSON
I am using the Java language, with the org.json version 2017101 library to capture data from a JSON. Follow JSON below: {query: {"UF":"SP", "results": {"cidades":[ {"cidade":"sao paulo",…
-
0
votes1
answer186
viewsScan json object with $.each jquery
I am making a request to my Servlet and taking the json data according to the code below: $(document).ready(function(){ $.post("MesaController",function(response){ $.each(response,function(i,v){…
-
0
votes2
answers133
viewsTreatment JSON
Through JQUERY, I need to make a request via POST where I’ll get a JSON with a token. The JSON return I get after sending the POST is this: { "Token": "e27bb0a7-e65b-4cc3-a82e-7a2a3c26a248",…
-
0
votes2
answers622
views -
0
votes1
answer928
viewsHow to print JSON object list
I’m implementing the facebook posts of a particular page on my site and I’m having trouble understanding how to print the following JSON structure: { "posts": { "data": [ { "created_time":…