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
answer637
viewsGet response from a restful java web service on Android
I am developing an application for Android and would like to know how I do to receive a response from the server, the technology I am using on Android is retrofit 2. After sending a POST request,…
-
1
votes1
answer101
viewsAJAX receives JSONP as "Undefined"
first I wanted to say that I have been researching for this here in the forum and I found some similar questions, but no answer worked here. Next, I have a php file on the server that connects to…
-
1
votes1
answer111
viewsFiltering json data with schema attribute
I have a JSON in this format: { "1": { "cidade":"cidade1", "name":"nome1" }, "2": { "cidade":"cidade2", "name":"nome2" } } and I need to filter the data of this json. For this I made a model.js var…
-
1
votes1
answer95
viewsHow to access a given object within JSON via Axios
I want to get the data of product_id, product_name and product_price using Axios. { "status": "success", "url": { "https://api.exemplo.com/product-1": { "data": { "product_id": "1", "product_name":…
-
1
votes2
answers561
viewsCreate header and logs dynamically based on a json
Good afternoon to you... I need to create a table where the rows and columns are created dynamically. For example, consider this JSON: {"employees":[ {"firstName":"John", "lastName":"Doe"},…
-
1
votes1
answer41
viewsIs there any way to display a component only if there is data in the json file to populate it?
I’m doing a quiz app and it turns out that some questions have 5 and others have only 4 alternatives. In the tutorial I followed it creates 4 choicebutton. I, who am very innocent, added a fifth,…
-
1
votes0
answers48
viewsView JSON data in carousel (scroll infinite Javascript)
I made an infinite scroll in JS, IE, every time the page reaches the end is made a GET request for a page of the site itself that returns films of a genre in JSON but, when it scrolls again the new…
-
1
votes2
answers119
viewsAccess function object and use it anywhere
I made a request for a json file and passed it to a function. $.post('principal/json',minhaCallBack,'json'); //Requisição function minhaCallBack(returnhtml){ //função var json = returnhtml;…
-
1
votes0
answers840
viewsInput and Json problems with quotation marks
Hello. I’m developing a web application using Springfrontend and a Restful API in the backend. The front is in javascript taking data from the API. There was a problem.... When quoting a field in an…
-
1
votes0
answers347
viewsUsing json with PHP and Mysql
Good I’m trying to use to Json to fill out a form with some data, the problem is that I have tried several ways and it still doesn’t work and is that I already have here is a big mess. In First…
-
1
votes1
answer1300
viewsCustom Json Spring Receipt
Hey, guys. All right? Currently in my system I am mapping the objects in a Spring standard way, but I would like to do a custom mapping: Current controller @RequestMapping(value = "", method =…
-
1
votes3
answers1797
viewsHow to send Jquery Json array to PHP
I have a table where the lines constantly change order, I need to record this table in the bank. Since I will no longer modify the table I click on a "Confirm Grid" button, at that moment save this…
-
1
votes1
answer483
viewsSpring/Jackson Json - Problem in deserialize
This question is a continuation of another question, a user answered found the solution to my other question (Custom Json Spring Receipt), but I’m now having trouble mapping using Jackson. I want to…
-
1
votes1
answer352
viewsChange iframe src and post date with javascript
i have a script that changes the src of the iframe by java script (it has to be by this method), however I do not know how to send data by post only by get because it is only by putting the data in…
-
1
votes1
answer569
viewsInsert array foreach
am tend a problem when entering data in the database with php , I have a form with several checkbox , then I want to select more than 1 checkbox and insert in the database , I did so form <input…
-
1
votes3
answers663
viewsDynamically access a JSON element
I have the following JSON: [{ "posts": { "ID": 452, "post_date": "01\/01\/2016 15:30:00", "post_title": "Titulo do post" }, "postmeta": { "anexo": { "size": { "value": "615", "unit": "KB" },…
-
1
votes1
answer98
viewsNhibernate is modifying property when returning by Web Api
I have a web service api where a query to the bank is relaunched through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it is because of the…
-
1
votes1
answer80
viewsJson for android Markers
I’m trying to loop markers from google maps, picking up information from a json, but I’m stuck on "transferring" the information from doinbackground to the Google method. To better understand,…
-
1
votes1
answer584
viewsJson Post Unsupported Media Type Spring MVC
I’m performing a POST using ajax data format JSON for a controller in Spring MVC, but the server is refusing such a request Unsupported Media Type stating that the type is not supported. Have some…
-
1
votes3
answers4250
viewsHow popular google line chart Charts with JSON
I am trying to popular a line google-Harts chart, it will be quite simple just the client name on the x axis and the amount of open calls on the y axis, I am returning the following JSON array…
-
1
votes1
answer233
viewsReturn 2 PDO queries in JSON
I need to return two queries. $id = $_POST['id']; $id = end(explode('editarnovoservico', $id)); $searchid = $pdo->query('SELECT * FROM cad_servicos WHERE id = '.$id); $searchid =…
-
1
votes1
answer690
viewsPost request on webservice with Swift
I’m starting now to use the still, I managed to make requests . get but stopped in post request. I created a user class that has name, email and password, however I can’t post a user object let…
-
1
votes0
answers46
viewsError while displaying Json in PHP
I have the following code. <?php $email = $_POST['email']; $nome = $_POST['nome']; //Não mexer// require_once "vendor/autoload.php"; use Intercom\IntercomClient; $client = new…
-
1
votes1
answer281
viewsHow to convert Curl request to java (Android)
I hope to convert the example below into CURL for Json in Java/Android. The IUGU API accepts JSON or XML. I tried several examples on the internet, but to no avail. CURL: $ curl…
-
1
votes1
answer336
viewsHow to encode json with multiple objects in PHP
I need the following result: { "sala": [{ "horario": "18:30", "data": "Seg e Terça" }, { "horario": "10:30", "data": "Quarta Terça" }] } UPDATE I’m doing it like this in PHP: /*criando objeto…
-
1
votes1
answer508
viewsShow Json data inside an Html Form
I have a Grid with the edit button when I click on it it accesses the Controller and brings the data in a Json and "Theoretically" was to return this data in a Modal. When I type Url .... show/(ID)…
-
1
votes2
answers55
viewsHow to compare hash coming from JSON on RAILS
Personal created a web service that today receives a registration and a password, it makes a select in the database and compares see if the registration and password are equal, if yes it shows some…
-
1
votes1
answer741
viewsAjax returning HTML together with Json
Hello, I am trying to fill in input data with the result of a database search using as a filter what has been typed before. ex: User enters client code and when the focus of the input, all the…
-
1
votes0
answers161
viewsSearch for nested json Rails files
I have some files that are services, organs, units. The agencies have services and units. I, in the jsons I have, can return to the part where, for example: localhost/api/organs/.json. that it…
-
1
votes1
answer507
viewsWhy can’t I get the data from the ajax request? (json)
I have the following code: script js.: function maisDetalhes(id){ $.ajax({ url:'paginaDados.php', type:'GET', data:'id='+id, dataType:'json', success:function(data){ alert(data.id_event); } }); and…
-
1
votes1
answer916
viewsProblems with PHP Json Encode?
something strange is occurring in the output of my function. When using var_dump only in the variable it returns key and value normally. Piece of code: public function buildGender() { $unknow_name =…
-
1
votes1
answer41
viewsUsing database mysql and php data
This code works correctly with fixed dates. How to use the dates that are registered in the mysql database? if (!empty($_REQUEST['year']) && !empty($_REQUEST['month'])) { $dates = array(…
-
1
votes2
answers32
viewsHow do I perform a php Insert where data is passed on by a json that has an object
How do I perform an Insert in php where the data is passed by a json that has in the object a nonprimitive variable. This is my Json {"id":0,"latitude":-8.0326941,"longitude":-34.9287402,"status":1,…
-
1
votes1
answer1567
viewsInsert data into Mysql database received from a Json
I have the following problem, I have an app and I send some data in Json format, to the server, until ai blz, enough good in this format:…
-
1
votes0
answers81
viewsUsing two JSON files with Jquery
Good morning/afternoon/night, I’m doing a college job trying to put 2 JSON files and compare a key, for example, in the first file will have several addresses and a key relating them, this key I put…
-
1
votes2
answers864
viewsHow to pick up space values in JSON
Hello. I have a problem with the popular select with JSON. When the value has 2 or more words the value of my option is not filled correctly. Example: { "Marcas": { "Acura": { "Modelos": ["Integra",…
-
1
votes0
answers86
viewsCapture JSON links to each recyclerView and pop up link data that has been captured which is another JSON (complicated)
So it’s complicated to ask, but anyway, that’s the logic: [ { "name": "http://meusite/dados1.json"}, { "name": "http://meusite/dados2.json", }, { "name": "http://meusite/dados3.json"} ] So as it was…
-
1
votes6
answers9622
viewsTransform json array into php array
Well, I have a little problem that I haven’t been able to solve. I already Googled about it, and the solutions I found did not suit my problem. I need to transform the array "Players" that is in…
-
1
votes1
answer147
viewsJavascript JSON.parse(jsonEmText) works on Linux but not on Windows. How to resolve?
Hello, everyone. I have an HTML page that uses Angularjs to display a JSON that is passed by using the encodeURI(). On Linux I can pass this JSON without problems, but when the same page function is…
-
1
votes0
answers121
viewsJSON request comes full page
I have problems with the requisição JSON, she’s returning the html of the full page being that my request is of a JSON. I’m using framework Laravel in versão 5.2 I make my request like this: $curl =…
-
1
votes2
answers99
viewsHow to introduce polylines in google maps api v3 with dates saved in the database
I am trying to show in google maps api v3 polylines that are stored in my database Here is the connection with the conf.inc.php database : <?php define('HOST','localhost'); define('USER','xxxx');…
-
1
votes2
answers539
viewsData synchronization on android
So, I’m in a project that needs to save a large mass of data coming from a json api on android’s Sqlite, something around 20 thousand records, in order to be able to work offline without problems.…
-
1
votes1
answer706
viewsFill Dropdown from the selection of another Dropdown
Guys, I’m trying to fill one DropDown from the selection of another DropDown, basically, when the user selects a state in a DropDown, cities of this state must be displayed in another DropDown,…
-
1
votes2
answers63
viewsTaking only 4 items from 1059 instead of all
I was able to solve my date problem. Currently my problem is to catch all users for some reason my Json is giving only 4 items of 1059 and I want to catch all. <?php function buscaUser($user) {…
-
1
votes1
answer654
viewsReceive json array value for string - Java
Hello, I don’t have so much knowledge in Json and I’m having a problem and I couldn’t find an exact solution to it in the community. I have the following json file format: { "name" : "ProductName",…
-
1
votes1
answer115
viewsJquery is returning Undefined to one of the generic properties I created
Jquery is returning Undefined to one of the generic properties I created, to use with Bootgrid. I’m trying to load a modal according to the event click one of the buttons on the grid, but the modal…
-
1
votes1
answer566
viewsListing the return of a Viewbag for View?
Following the instructions of this post (Return the data to the View using Json.net or javascript-Asp.net mvc) answered by Loudenvier was like this: Class: public class TB_RECEBE_IMAGENS { public…
-
1
votes2
answers655
viewsHow to Catch JSON Data with Angular
I am studying angular and I am trying to receive data in JSON format from a webservice, but is with the following error: Xmlhttprequest cannot load http://localhost:8080/Newspaper/data/newspaper. In…
-
1
votes1
answer100
viewsArray repeats simultaneously in json
I am trying to make a calendar where I will get the information in a request Rest in Angularjs. What I want to create a calendar where you can record your events. With the json date attribute he…
-
1
votes1
answer50
viewsproblems with php, json, javascript and mysql
I’m trying to get data from mysql to display on html with php using json, but this going wrong, it brings the data but does not display, if I hit the F12 it shows the database data but does not…