Questions tagged as 'json'

3
answers

Function Jquery can not find the Controller when I go to the server

During the development the function below finds the Control and makes the request correctly, however after publishing on the server the function no longer finds the Controller: During development I have to leave it like this: url: "/Contr...
asked by 22.06.2017 / 16:33
2
answers

How to update data from a table only if the new values are different from the current values?

How can I do an UPDATE only if the submitted data is different from the stored data? I have the following: <?php header('Content-type: application/json'); header('Access-Control-Allow-Origin: *'); include 'database.php'; $cod_oferta...
asked by 12.05.2017 / 00:20
2
answers

Json parse array

I have the following answer { "users":[ { "id":1, "Name":"Rafael", "label":"teste" }, { "id":2, "Name":"Carlos", "label":"teste" }...
asked by 11.04.2017 / 16:02
2
answers

How to perform asynchronous request using JSON?

Scenario, I have a data request using JSON but would like this request to be made outside of the main thread of the app so that it does not crash and that the user can perform other operations while the data is downloaded. In the code below I...
asked by 29.10.2014 / 15:44
1
answer

Transform array vue into Json

I am trying to pass in an textarea an array of Vue.js, and would like to turn it into json . What would be the best way to do this? new Vue({ el:"#app", data : { nome_da_variavel_array: '[{variavel : 'valor'}...
asked by 06.09.2018 / 20:59
3
answers

JSON Data Capture with PHP

I have the following JSON file: { "version": "1.0", "encoding": "UTF-8", "entry": { "xmlns": "http://www.w3.org/2005/Atom", "xmlns$gd": "http://schemas.google.com/g/2005", "xmlns$yt": "http://gdata.youtube.c...
asked by 12.12.2014 / 12:34
2
answers

How to put paging in foreach that returns a JSON list with ajax

I call this function that returns me a list and populates a table in the view, updating every time I pass a parameter through the filter. Everything works perfectly, I just need to put paging because it has search that returns more than 100 line...
asked by 28.03.2018 / 18:52
2
answers

Why does $ .post () not return an object?

I have a function something like this: $('#btn-load-more').click(function(){ var key = $('#hash').val(), limit = 0, i = 0; setTimeout(function(){ $.post('api', {type: 1, limit: limit, key: 128921}, function(res){ co...
asked by 30.05.2017 / 02: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 decode this json in php?

I saw some similar questions here in satckoverflow, but I did not find an answer to this problem. I have a Result that brings me the following json: HTTP/1.1 200 OK Server: nginx Date: Fri, 07 Jul 2017 19:44:04 GMT Content-Type: application...
asked by 07.07.2017 / 21:54