Questions tagged as 'json'

2
answers

List generated with JSON data

I'm having trouble querying data from a JSON file within a list in HTML. I put my prototype in the Plunker . Script ... $.getJSON("list.json", function (json){ //alert("Carregou o list.json"); var states = json.states; var...
asked by 31.07.2015 / 22:25
1
answer

Sort decimal notes

I am ordering a related json in notes in undescore.js {8.0 , 8,5 , 5,5 } var asc = _.sortBy(oper, function(num) { return num.nota; }); 8.8 6.0 5.5 10.0 0.0 How do I make him unde...
asked by 31.03.2015 / 17:11
3
answers

json_decode returns null

I have a JSON file that is in this link . I need to get and display the data in PHP, I have the following code to test: $linkAnapro = 'http://s.anapro.com.br/a-p/dados/b3gkhu%252f3ohE%253d/estoque.json'; $output = file_get_contents($linkAn...
asked by 06.04.2015 / 19:48
3
answers

how to indent a string for json

I have a string in json format. In this way: {"IdLead":4186960,"Concessionaria":"Mila - Centro","DadosQualificacao":{"IdEvento":79654,"Qualificacao":1,"Motivo":6,"DescricaoMotivo":"motivo 1234","Ficha":["aaaaaaaa - TESTE","Ação desejada...
asked by 24.05.2018 / 19:29
2
answers

How to add and search BD products with JSON in HTML dynamic fields?

I can not get search results values from JSON and database after adding new dynamic product line with JavaScript. HTML form, product is search by code: <form id="adicionarformProdutos" method"post" action"" enctype="multipart/form-data"&...
asked by 10.10.2014 / 03:11
2
answers

Consume API (JSON) in form fields, how to do it? [closed]

Hello, fellow programmers. I would like some help. I have to use in a project the API that includes the Fipe Table data in JSON format ( link ). I want my form to have four fields, which are: Brand, Model, Year, and Value. When I select...
asked by 25.11.2015 / 11:28
2
answers

null object when deserializing Json

I make a request to an API, which returns me data in the form of JSON. Example: { "id": 8452, "creator_user_id": { "id": 46342, "name": "ADM. Suporte Comercial", "email": "*******@gmail.com", "has_pic": true, "pic_hash": "296e6514a7d0bf854f...
asked by 11.08.2017 / 21:08
1
answer

How to iterate over a JSON file to appear in the Auto Complete listing?

I am doing an autocomplete, via AJAX , which enters the Web service, "search in the Bank" and returns me a String in the format JSON . I have to transform the JSON down into a list to iterate over it. In data.d I...
asked by 08.10.2014 / 15:59
4
answers

Deserialize Json and put the values in views

Well, what I want to do is an activity where a Json is consumed. The problem is that all tutorials show only how to return a Json in a listview. What I want is a structure something like this: Title: Textview ; Image: Imageview...
asked by 16.03.2017 / 17:14
1
answer

retrofit - How to send a JSON via POST

Talk to me, I'm using Retrofit 2 and I'm not able to send JSON to WS. I have my class here that sets json the way I need it: CustomGsonAdapter public class CustomGsonAdapter { public static class UserAdapter implements JsonSerializer&l...
asked by 04.05.2017 / 19:59