Questions tagged as 'getjson'

1
answer

Access a list / array in a JSON URL

I am sending via JSON an array of strings, how can I access this array via url? example of some of the tests:    link    link {carrengado, erro} But it did not work, does anyone know how I can do this? [HttpGet] public HttpResponseMe...
asked by 19.09.2018 / 15:16
2
answers

No Access-Control-Allow-Origin header is present on the requested resource. Origin 'null' is therefore not allowed access. - Phonegap [duplicate]

I have read about this method json and I just do not understand and do not know what to fix, I'm using another domain to get json. Here is my code: $(function(){ var url = "http://website.com/json.php"; $.getJSON(url, function(res...
asked by 11.09.2017 / 17:02
2
answers

Get Data in JSON structure with python

I want to access certain information in the JSON code below, with python: { "informacao1": valor_informação1, "informacao2": "{ dado=informação_dado }" print(arquivojson.get("informacao1")) The above print will display the line bel...
asked by 21.05.2017 / 16:42
4
answers

Contents of a JSON in a table cell

How do I get the result of a json and play straight into a table from my td? Is the form of getJSON right? <script type = "text/javascript" language = "javascript"> $(document).ready(function(){ $.getJSON('../js/gcs.json', f...
asked by 30.08.2016 / 22:41
4
answers

Back position in JSON format data or list with Python

I'm working with data similar to the structure below: {"Id":1, "Data_inscricao":"2017-01-01", "Texto":"Loremipsum", "Numeracao":26, "Tempo":"25s"}, {"Id":3, "Data_inscricao":"2010-05-02", "Texto":"LoremipsumLorem", "Numeracao":656, "Tempo":9}...
asked by 07.06.2017 / 03:18
1
answer

How to generate JSON dynamically to feed future application?

What I want to do is: Create a minimalist application that searches the database, returns the result in JSON, and this result is interpreted by external applications via http, with no change in the minimalist application. It works as an API, but...
asked by 03.05.2017 / 07:18
0
answers

$ .getJSON image upload

I need to upload the images along with the registration in the DB. $("#btnCriarConta").click(function() { if ($("#inputNomeCondominio").val() !== ""){ var nomeCondominio = "Tiago"; var foto1 = "/data/data/c...
asked by 19.12.2015 / 20:08
3
answers

getJSON PHP does not show result

I'm doing a simple query via getJSON, but it's not returning the values to be shown. File testJson.php <!doctype html> <html> <head> <meta charset="utf-8"> <title>Documento sem título</title> <script...
asked by 10.12.2015 / 12:55
1
answer

Add header in JQuery getJson function

Is it possible to add some header in jQuery's $ .getJson function? I'm having cross-origin issues and have read in some places that adding some header information can solve this problem.     
asked by 17.01.2017 / 13:37
1
answer

Get JSON information and insert into html with loop using getJson

Next, I have a table in an html page, example: <table> <tr> <th>nome</th> <th>e-mail</th> </tr> <tr> <td>...
asked by 13.05.2017 / 06:56