Questions tagged as 'json'

1
answer

How to receive data from a Rest API using Apache Camel

And how do I get the data from a REST server passing a basic authorization in the header? I have tried in many ways and it does not work, and when I test in postman , it works normally. I have tried the simple way: from(URL_API_FB...
asked by 05.12.2017 / 12:57
1
answer

Get information from an ObjectJson without Array

I have the class below and I can fetch information from a JSONArray in this format: {"customer": [{"id": "1334", "name": "Bruno"}]} TextView nome_usuario; private static final String TAG_CLIENTE = "cliente"; private static final String TA...
asked by 30.11.2017 / 15:47
1
answer

Swift 4 http get and iterate the JSON response

Hello, I'm learning Swift and I'm doing a GET request via URL that returns me a JSON with this structure. { "data": { "response": [ "https://s3.amazonaws.com/meusite/minhapasta/banners/banner-01.png", "https://s3.amazonaws.com/meusite/minh...
asked by 10.12.2017 / 17:21
1
answer

Filter Json coming from the bank using Lambda C #

I'm starting development and I'm in need of help. I got this Json I'm getting from the bank. However I need to filter the information by name for my method to return. For example. If the name="Percent Processor Time", it should only return the a...
asked by 30.01.2018 / 14:35
1
answer

Pass data received in JSON to another page

I have the code below where I get a JSON file and display 2 fields of it: $.getJSON('www.site.com.br/arquivo.json', function(data){ this.qtd = data.json.length; this.retorno = ''; for(i in data.json){ this.retorno += 'Nom...
asked by 22.11.2017 / 17:54
0
answers

Position of an Object with a specific name within an Array

Good afternoon! It's OK? Could you please help me resolve the case in JQuery / XML below? I make a request for an ex town name. ' Vila Velha - ES ' via JSON to a given XML, and it returns an array of cities 'Vila Valério - ES', 'Vila Velha -...
asked by 06.12.2017 / 20:00
3
answers

View JSON object

I have the following JSON: "json": [ { "nome": "Meu Nome", "amigos": [ { "amigo": "João", "idade": 20 } ] } ] I also have the following for: this.qtd = data.json....
asked by 20.11.2017 / 18:14
0
answers

What method to use not to display the json data in the php page that serves as a request for the android app

Good night, I have an android app and I'm using this php code for a json request and I wanted the data not to appear when someone used the url, because then you can see the output information of the select How could I not show and be able to...
asked by 29.11.2017 / 06:21
0
answers

JSONObject does not add ArrayList

I use the code below to populate my arrays quietly, but when searching for a topic here, I realized that for my problem I could use a generic class. The problem is that the JSONObject is not populating with the past array. class GenProjeto {...
asked by 20.11.2017 / 02:45
0
answers

Android Studio Connection Database using JSON

I'm having the following problem, I'm making an app that contains login and user registration and I'm using code in PHP and JSON for this. But I checked my Response.Listener is never called, the execution jumps it ... The code that is on the Mai...
asked by 17.11.2017 / 19:06