Questions tagged as 'json'

0
answers

Modal Bootstrap at Laravel

I'm having problems with a modal, when I make a request via ajax to get the contents of my route, modal opens the whole json content, however I can not format this content My View @extends('layout.admin.app') @section('conten...
asked by 22.08.2017 / 00:29
1
answer

Return from JSON array

My JSON returns more than one number. How do you get everyone and not one? I would like to set the return to TextView . How to make it return all the values and not only the first? JSONObject json = new JSONObject(result); JSONArray...
asked by 30.07.2017 / 15:59
1
answer

Consuming webservice per SQL Server procedure?

I'm using sql server 2016 to consume webservice per store procedure. I have a webservice in JSON returning the following: [{"nome":"Rebecca","email":"[email protected]","ra":"12345"},{"nome":"Caroline","email":"[email protected]","ra":"23...
asked by 21.07.2017 / 13:55
1
answer

How do I store the contents of a JSON file in a variable

agenda=[]; $.getJSON("agenda.json", function(dados) { agenda=dados; }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>     
asked by 22.07.2017 / 04:13
1
answer

How do I know if a Json request returned no result?

I have a code in JavaScript that searches a database and fills a input with the name of the patient found: $("#bCns").keypress(function (e) { if (e.which == 13) { var options = {}; options.url = "/Home/pegaPac...
asked by 29.07.2017 / 21:40
1
answer

Retrieve key and field-specific value in Firebase

Please, I would like to recover only the key and email from the list, ignoring the other "fields". I wanted to have a list, without loading all the values of all nodes, as I have done lately. How to achieve this with javascript?     
asked by 31.07.2017 / 05:43
2
answers

How to filter Json data with jQuery?

I have basic knowledge of JS, I like to work with jQuery that facilitates a lot. I have several data in Json and would like to create some variables with the result of some Json lines, there is an example Json that I have: Array ( [bo...
asked by 14.07.2017 / 17:05
1
answer

Sending data to MYSQL database with PHP

In my code below I send the data I need for PHP and it inserts the data into the MySQL Database. When I click the register button, I send the data through a HashMap, as I would to send the data. idcliente too, which in the case is "int" ... Can...
asked by 25.07.2017 / 19:32
1
answer

Deserialize JSON with dynamic field names

I have a Json like this, and inside the "buy" entity, I get an object with the id of the purchase, and then the information I need to access, I have already generated the classes, but my object that changes each name is getting null { "Pedi...
asked by 25.07.2017 / 13:41
1
answer

How to use Boolean in Json

I have the following JSON, and inside my code I have a check to see if autoLogin is enabled. Object {autoLogin: "true", autoLoginKey: "bWF4LnJvZ2VyaW8=&YWU4NjIwMGJhMTU0NWQzMjQ0ZmRlM2FhYWNiYTJjZmM="} However to do this check use th...
asked by 05.08.2017 / 01:40