Questions tagged as 'json'

1
answer

Parameter passing in URL using JSON + AJAX

I'm studying JavaScript and would like support from you. I have a file that I called getPagamentosMaioresQue.php , this file has the following syntax: <!DOCTYPE html> <html> <head> <title> PHP T...
asked by 26.08.2016 / 05:20
2
answers

Pass variables on the getjson XDK URL Intel

I started to study javascipt now and I need to pass two variables to a sum method with getJSON and I do not know how to do it. I created my app with Intel XDK, the server I created with delphi xe2 using datasnap. I tried these two ways and I...
asked by 21.07.2016 / 15:43
1
answer

Fill object in Swift using data from a JSON return

I have a webapi that returns a list of proofs: { "Provas": [ { "Codigo": "11111111111", "Disciplina": { "Codigo": "111111", "Nome": "SOCIOLOGIA E EDUCAÇÃO" }, "Tipo": "SUB", "Correcao": "20...
asked by 20.07.2016 / 22:24
1
answer

Problem of perfomance when returning json with rabl after consultation with activerecord

I'm having trouble adjusting performance by returning json after a query to the database. I've tried a lot of things, and I'm not getting any faster. Can anyone give me strength with this? This is the query in the controller Methodnotmo...
asked by 29.06.2016 / 21:06
0
answers

Receiving data from a site in a JS application - Phonegap

Is it possible to receive data from a website even though I do not have access to its server? I did a search and I saw JSON talk but for what it seems to me (I can be wrong, of course) it's only possible to implement it through php itself on the...
asked by 29.06.2016 / 19:46
1
answer

Ajax Returning all page HTML

I have an ajax request on a customer's site on the product page, which, when selecting the available product size, changes the price, but in ajax return instead of just taking the price it takes all the HTML from the page, ie it loads the entire...
asked by 20.06.2016 / 16:24
0
answers

How to use the contentType sent by the client on the server

Good afternoon! I'm trying to understand the function of contentType. As far as I know, I would be telling the server to use the formed JSON UTF8 to properly encode the data I am sending. contentType: "application/json; charset=utf-8", I...
asked by 07.07.2016 / 20:08
0
answers

Error in http connection org.json.JSONException: End of input at character 0 of

When I try to get a JSONArray from the internet, it has an error. Error Error in http connection org.json.JSONException: End of input at character 0 of This error happens when he tries to read the response from the interne...
asked by 06.06.2016 / 17:49
1
answer

Problems with Array conversion in Swift 3

With the update of swift3 I'm getting the following error "type 'Any' has no subscript members", I've seen lots of questions about it and tested most of them but to no avail. The code where I'm having this error is as follows: Alamofire.reque...
asked by 18.10.2016 / 18:05
0
answers

How to use UTF8 in JSON with PHP?

I am doing a query in a sqlserver database with PHP / PDO then return a JSON to search in Angular JS. $result = $stmt->fetchAll(PDO::FETCH_ASSOC); $json = json_encode($result); print $json; However, the values it contains, for example:...
asked by 02.06.2016 / 18:02