Questions tagged as 'json'

2
answers

Separate string variables json

I have the following string: string(292) " {"access_token":"ab5f49438xfbc2df2a6a927a02b5c2e2442am982c71ee8re4aee1b2c64783ddc7cab4050ed05d6aa", "token_type":"Bearer", "expires_in":300, "refresh_token":"ab4156db100f148b6cgd7e17097e1f1c25dcf32a53...
asked by 20.06.2017 / 15:24
2
answers

Display the name in the input using autocomplete

The autocomplete is working correctly, I get the following json: [{"label":"Jorge Valdivia","value":"16"},{"label":"Vinicius Aquino","value":"15"}] The problem is that when I select an option, the input receives the record ID, I would like...
asked by 17.07.2017 / 14:57
1
answer

List data from Json with Angular 2

Considering that I have a Json coming from a Url (' link '). I created a service to get this object: import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; @Injectable() export class Plano...
asked by 17.07.2017 / 21:54
1
answer

Get Json from query done in google with WebBrowser C #

I need to perform the following process, perform a google search and get the search information in Json format, how could I do this? I tried the following way, I used the C # WebBrowser and I browsed www.google.com.br, until it worked, but I...
asked by 14.07.2017 / 01:01
2
answers

Working with JSON for request and response Java

I need to consume a WS with rest that is almost complete, only 2 things to finish: - mount the request JSON and manipulate the response. JSON Here is an example of the template I need to submit in the request: { "sendSmsRequest": {...
asked by 07.07.2017 / 16:43
1
answer

Foreach in JSON file

I have a JSON return, but I am not able to make a foreach (PHP) on it, it gives this error:    Invalid argument supplied for foreach () Below is JSON : { "categorias": { "categoria": [ { "id": "1"...
asked by 21.05.2017 / 22:48
2
answers

how to filter a json object?

I have the following json object: var json = { "acao": "listaHoteis", "hoteisPesquisa": [ { "home_id": "1", "nome": "Itamarati" "preco": "925" }, { "home_id": "2",...
asked by 07.05.2017 / 13:35
1
answer

Error consuming json using ajax

I have the following return in json: { "ConsultarRegistroPorCodigoResult": { "Codigo": 2, "CodigoSetor": 1, "Login": "ednilson1", "Nome": "Ednilson", "RegistroAtivo": true, "Senha": "123456",...
asked by 10.05.2017 / 12:45
1
answer

Help with JavaScript filter

I have the following JavaScript code: JSON var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94...
asked by 10.05.2017 / 20:44
1
answer

Json with Array within PHP array

I encounter a problem. I have an API in passing URL { "id": "1", "codeReferenceAdditional": "33B", "isActive": true, "personType": 1, "profileType": 3, "accessProfile": "Administradores", "businessName": "Movidesk", "corporateName": "Movime...
asked by 17.04.2017 / 22:37