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
answer47
viewsIs it possible to run an external page on the client and get the JSON result using PHP?
good afternoon! The following is, I have a URL of a forum on the Internet that when accessing it it returns in JSON format the last posts viewed by a certain user. As it is external do not know how…
-
0
votes3
answers1191
viewsShow BD record without refresh
// esta é uma pagina separada, chamada adicionar_consulta.php <?php $conexao = new mysqli("localhost","root","","hospital"); if ($conexao->connect_errno) { echo "Failed to connect to MySQL: ("…
-
0
votes1
answer521
viewsHow to create javascript array object within a FOR?
I need to pass an array object as follows, to the api: [paulo = 1, gustavo = 2, amanda = 3,...] I have the following code: $scope.salvarHabilidades = function(pro){ var valores =…
-
0
votes0
answers253
viewsIt is possible to store a list in JSON file
I am displaying data that is brought from the database in some Dropdowns, as if it were a kind of website shopping cart page E-commerce, at the moment my page is like this: But I need to store this…
-
0
votes0
answers68
viewsQuery 3 tables using LINQ and return a Json object
How do I query the database between 3 tables using LINQ by returning a JSON object following the Structure below ? Public class PedidoGrupo{ int id ; string nome ; public virtual List<Pedido>…
-
0
votes0
answers109
viewsError sending email with PHP, Ajax and JSON
I have a simple form in PHP where the request is made through a Javascrit with ajax that calls the PHP file and returns a response in JON. But the answer I always have is negative, according to the…
-
0
votes1
answer88
viewsConvert String Json CSS Inline to an array or json with PHP
I have a register in the json database and inside it there is a "style" object in which it has an inline css code, for example: "padding: 90px 0px 20px 0px; background: #000000; display: block;"…
-
0
votes3
answers543
viewsjson php error, but json is correct
My php script returns a json, porˆm when js will read json error. But copying and pasting the same json into a validator (e.g.: https:/jsonlint.com/) claims to be correct. For those who can help me…
-
0
votes0
answers57
viewsHow to Edit table values via JQUERY after web service receipts
I need to create functions to edit/change and delete values from the table that arrives via JSON from a web service, the part of the webservice to handle what will be sent I know how to do, how do I…
-
0
votes0
answers156
viewsMy jQuery is failing to work the json it received from the back
Guys, I’m since yesterday trying to solve this kkk. Well I’m making an ajax request for my back-end. So far so good, the data arrives and execute right, do what I want. I return an array converted…
jsonasked 7 years, 5 months ago Rodrigo Lima 1 -
0
votes1
answer749
viewsjson php + javascript
I need the following: I got what was typed in the input with the code below and I go to the url: http://bonusdogeronimo.com.br/rtv/indez.php <script> $(document).ready(function(){…
-
0
votes1
answer13280
viewshow to load JSON file in JS and load search result in HTML code?
I made this javascript code, in a . js file, where my intention is to take the data from a JSON file and use it in my HTML. I don’t know how to use the $.getJSON function in my code to do this and…
-
0
votes0
answers257
viewsProblems with php foreach
I made a foreach with PHP and a file.json to simulate a mini shop inside a thumbnail in a slide carousel, however it is not properly appearing one side of the other as it should be. I would like to…
-
0
votes2
answers206
viewsDifficulty accessing json
I have the following json: { "destination_addresses": [ "Rua B, 1 - Coqueiro,Belém - PA, 66670-350, Belém - PA, 66670-350, Brasil" ], "origin_addresses": [ "Pref. José Walter, Fortaleza - CE,…
-
0
votes2
answers1109
viewsJson Web Api with error
I have a REST service in WEB API, I use 2 related entities(person and user) relationships 1 = 1, the post to insert this ok, recover the data, searching for the user id as well, but when I try to…
-
0
votes1
answer37
viewsArray does not go full through json
Good night, I am trying to pass an array to json but it only passes the last variable function GetSuppliersView() { global $db; global $id; global $type; try{ $query = $db->query("SELECT * FROM…
-
0
votes1
answer543
viewsShow data from json
I need to recover the POINTS and RODADA_ATUAL data The json link is --> https://api.cartolafc.globo.com/time/slug/semtitulos That’s the name of the team I want to pull the dice on: semtitulos…
-
0
votes1
answer49
viewsHow to display a result list in an Activity?
I have a very limited knowledge in programming and am starting Android now. I started developing an Android project for physical therapy. In this project, physical therapists can register and log in…
-
0
votes0
answers385
viewsHow to replace array value
That’s my code these days, I’d like to add the season (which I can already do) and then the episodes within this season (which I’m not getting to do). <?php $string =…
-
0
votes1
answer318
viewschange JSON.stringify data
I have a form with several fields when, I have a function that when submitting the form captures the fields: $('.form').submit(function () { var dados =…
-
0
votes0
answers59
viewsI cannot enter the Success json function
Dai galera.... I am unable to pass the return of my code to the function Success of my ajax via json.... I am using codeiginiter, php, mysql.... someone can help me.... it’s been almost a week that…
-
0
votes1
answer419
viewsCurl returning null value in JSON with PHP
Well I’m studying cURL, because I want to make an application with Twitter using login form and password... yesterday I did this question and was very well answered, based on this I am studying…
-
0
votes0
answers354
viewsSocket with JSON in java
Good night to you all. I have a problem, in case I have a software that runs on port 3333 on a particular computer, and in it has an api, only I need to recover it through another computer and get…
-
0
votes1
answer150
viewsHow to decode this json in php?
I saw some similar questions here on satckoverflow, but I found no answer to this problem. I have a Result that brings me the json next: HTTP/1.1 200 OK Server: nginx Date: Fri, 07 Jul 2017 19:44:04…
-
0
votes1
answer630
viewsHibernate self relationship transforming into json breaks
I am using Hibernate to persist the objects in an embedded HSQLDB file. I have created a method similar to a "Tester" to popular and seek the persistent information. But when I search for the…
-
0
votes1
answer1157
viewsHow to take the contents of an HTML Table and convert into a C# List<>?
I have a table html which is created dynamically by the user. I need to take all the data entered by him in the table and generate a List to be able to save later in a database. Below are project…
-
0
votes2
answers377
viewsUnable to convert JSON List to Array in Javascript
I’m having trouble getting the javascript data from a json. To better explain, the data comes from the database, thus: //PHP $rs = mysqli_query($con, "SELECT id_acao as id, text FROM acoes"); $data…
-
0
votes1
answer288
viewsApi receiving date with changed month and day
I have a class: public class Filtros{ public DateTime DataInicial { get; set; } public DateTime DataFinal { get; set; } //outros campos... } I have a C# API that takes the class:…
-
0
votes1
answer176
viewsjQuery read json and show sublevels only if they exist
I would like to do a validation, do a printout for the first level and second level of a json, the second level should be printout only if there is that second level in the current array item. Ex de…
-
0
votes1
answer230
viewsFill table column with Object Json (using Footable)
I’m testing a plugin to load a Json into a table, footable, I managed to make it load simple Json. But when I test a Json where one of the columns is a Json object I cannot see the fields of that…
-
0
votes1
answer531
viewsMap Json Angular Data 2
I created a service to load a Json API: import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import…
-
0
votes1
answer874
viewsPass Database values to Spinner
I am searching client values in the database through PHP/MYSQL and I am returning via JSON, and I would like to pass to SPINNER more than 1 argument (idclient + client name)... In this case, I…
-
0
votes1
answer3833
viewsConsuming webservice by SQL Server?
I am using sql server 2016 to consume webservice by Procedure store. I have a JSON webservice returning the following:…
-
0
votes1
answer783
viewsMultiple filters on a json object?
Hello. I have 10 filters for a single json object: var filtro1 = function(value, selecionado){ var data = JSON.parse(JSON.stringify(json.aPesquisa)); var result = data.filter(function(pesquisa){ ...…
-
0
votes1
answer3571
viewsReceive a Base64 string via JSON and display in a Timage DELPHI
I am receiving a JSON object, which inside it has a photo converted into Base64. I need to load this string into a Timage in Delphi. Pick up the string I managed using the superobject class, but…
-
0
votes1
answer90
viewsSending data to MYSQL database with PHP
In my code below I send the data I need to PHP and it makes the insertion of the data in the Mysql Database. By clicking the register button, I send the data through a Hashmap, as I would send the…
-
0
votes1
answer156
viewsHow to know if a Json request did not return result?
I have a code in JavaScript who does a search in a database and fills in a input with the patient’s name found: $("#bCns").keypress(function (e) { if (e.which == 13) { var options = {}; options.url…
-
0
votes1
answer487
viewsReturn of JSON array
My JSON returns more than one number. How to receive all and not one? I would like to set the return on one TextView. How to make it return all values and not only the first? JSONObject json = new…
-
0
votes1
answer199
viewsAutocomplete insert the value into two different inputs?
I have this code <script type="text/javascript" src="js/jquery-1.4.2.js"></script> <script type='text/javascript' src="js/jquery.autocomplete.js"></script> <link…
-
0
votes1
answer216
viewsReturn Vector within JSON Retrofit Array
How do I bring information from one vector inside another json-format vector to retrofit: I have my return: [ [ {"prato":"BROCOLIS C\/ SALSINHA"}, {"prato":"ACELGA"}, {"prato":"ALFACE + JERIMUM…
-
0
votes1
answer85
viewsRecover Data from Json Return
I’m getting a return from a JSON URL, but I’m not able to recover the answers , I only get the first array and then there’s another array that I’m not able to recover Code $json_file =…
-
0
votes1
answer398
viewsArray of recovered data from a Response
have a service Rest q returns Macs coming from a scan,the json template and this: { "macs": [ { "mac": "9C:5C:F9:66:73:34" }, { "mac": "B8:A3:E0:72:9E:EA" }, { "mac": "00:E0:4C:2A:26:60" }, { "mac":…
-
0
votes1
answer103
viewsHow to repeat Json data in a list
How to list all students(name), series(degreeId) and classes(classId) in this Json file. [ { "id":1, "ra":12346, "name":"Pedro Santos Neves", "degreeId":1, "classId":1 }, { "id":2, "ra":456798,…
-
0
votes1
answer746
viewsStore JSON data in Mysql
I have a database in Mysql where, as the project is being developed, the number of fields of some tables has grown exponentially. The People table, for example, has fields relating to personal…
-
0
votes0
answers183
viewsAngular request does not send post
good night! next...I am making asynchronous requests with Angularjs and it works if use get and params, however if I switch to "post" and "date" it stops sending...I will post here the controller…
-
0
votes1
answer416
viewsShow JSON result via Ajax
I don’t have much knowledge in javascript, but I need to integrate a payment API. I’ve never performed integrations with an API before. Following the documentation I saw you need to first generate a…
-
0
votes1
answer298
viewsAccessing a JSON with JS
I was trying to access a JSON with JS, here’s a example how they are: { status: "0", ano: "Não Informado", competencia: "Não Informado", id_Publication: "8" } But actually this is only one part of…
-
0
votes1
answer212
viewsjsonb: how to fetch the value of the same key of all objects in an array?
I have a type column jsonb that stores objects in an array. I can get the key template of all index objects 0 thus: psql=# select data->'components'->0->'template' as template from page;…
-
0
votes1
answer714
viewsConvert xml-like format to json with javascript
I am using the following code to read a file similar to an XML, but I need this file to be converted to a JSON, will anyone be able to give me this help ? Follow the code of my index.html…
-
0
votes0
answers36
viewsWeb service connection problem - Networkonmainthreadexception
I’m running a method on android, where I try to perform a recover some information from a webservice ... I stopped to debug and whenever it will connect it falls in the catch and when it continues…