Questions tagged as 'json'

2
answers

QPX Express API - List of flights

I'm trying to use the QPX Express API to fetch list of flights, in the documentation I have how to pass the arguments, but I do not know how to use, for example: Documentation:    The simplest way to try out this API is to send it to POST...
asked by 22.01.2015 / 16:46
1
answer

POST (PHP) with JSON

Well, I researched an answer and did not find it so I decided to ask here. I was doing a login system with JSON and PHP that should send a POST through JSON however the variable "_POST" always returns empty, prints: This is the JSON that it s...
asked by 22.03.2015 / 15:20
1
answer

Json Correct format for typeahead?

When generating a JSON with the code below: JSONObject jsonObject = new JSONObject(); try { jsonObject.put("Nome", c.getNome_fantasia().trim()); jsonObject.put("Apelido", c.getNome_razao_social().trim()); jsonArray.put(jsonObject);...
asked by 20.07.2015 / 13:08
2
answers

How to return more than one property with JSON?

I would like to know how I return more than one property in PHP. Below is the code where I return the user name and wanted to return, in addition, his registration. I tried to do the same thing just by adding the 'enrollment', but it did not wor...
asked by 14.01.2015 / 13:41
1
answer

Filter json city returned from google places

I need an example to understand how I can go through a jsonArray. This is the example I'm using link /** Receives a JSONObject and returns a list */ public List<HashMap<String,String>> parse(JSONObject jObject){ JSO...
asked by 12.01.2015 / 15:28
2
answers

How to clean the inputs after performing an ajax request?

I have a function in AJAX that while loading information from the database to feed the inputs is written "Loading ...". If it does not find any information it continues with this loading in inputs until I refresh the page or do ano...
asked by 07.11.2014 / 14:23
1
answer

Deserialize Json

How can I deserialize this json ?? I'm learning now communication with web service and I've had this doubt, I got the return of the web service follows my code: private void makeJsonObjReq(){ showProgressDialog(); JsonObjectRequest jso...
asked by 17.09.2014 / 16:18
1
answer

Spring MVC REST JSON

To have a problem, in my controller when I have some entity with relationship it does not return the JSON, I already try to put the @JsonIgnore in the get of the references entity but nothing follows the code. @Entity @Table(name="tb_consumer")...
asked by 01.09.2014 / 20:07
1
answer

How to add an array to a value attribute?

Hello! I'm having trouble using a multiple select field with a choseen-select plugin in a form link <form id="cadastro" action="process_teste.php" method="post"> <select id="form-edit-selecionar" name="fornecedor[]" data-placeholder...
asked by 12.09.2014 / 15:01
1
answer

Saving image data from json / web-service to sqlite on iphone

Hi! I wonder if you can help me, I'm trying to save an image in an sqlite bank, on the iphone. But I can not.  Briefly explaining how it works ... The app connects to the server and receives the data using Json. Once received, the data is...
asked by 21.07.2014 / 02:10