Questions tagged as 'json'

1
answer

Json request for slow scrolling tableview

I have an application that returns a json to a tableview, however, every time I roll the cells it kind of chokes, I've already been told I'd have to leave the asynchronous json return function ... Does anyone know how to treat this in Swift?...
asked by 04.11.2015 / 20:54
1
answer

How to convert Json to Object where column name is a variable number using HttpResponseMessage

I have the following Json: {"video":{"duration":"23:16","views":"2358","video_id":"1235288","rating":"5.00","ratings":"3","title":"titulo do video","url":"urldovideo","default_thumb":"urlaqui","thumb":"outra url aqui","publish_date":"2015-08-2...
asked by 24.09.2015 / 20:41
2
answers

Problems with JSON on the server

Hello I'm having problems with JSON when I upload it to the server .. Example of one of my code that uses JSON : $("input[name=people]").keyup(function(){ if($(this).val() != ''){ $.ajax({...
asked by 08.05.2016 / 01:33
1
answer

recover data from JSON file

I need to implement a translation in a plugin called pikaday, which is actually a datepicker, and as the site is multilanguage I am trying to implement the i18n. pulling the translations of a JSON: link and here in jsfiddle the example: li...
asked by 30.09.2015 / 07:08
1
answer

search product / property with autocomplete and populate content dynamically with php and mysql

I'm developing a quick search field with autocomplete of jquery ui, php and mysql. The autocomplete works perfectly though, I'd like to do it another way. When the user starts typing in the field the display window is filled with real estate rel...
asked by 26.08.2015 / 19:24
1
answer

What is the best way to make an HTTP request on Android?

I am using DefaultHttpClient to make requests in json from a Webservice, however this function is deprecated, what is the best alternative for creating a client for Webservice?     
asked by 11.05.2015 / 21:38
4
answers

Error in return JSON PHP for AJAX

I can not return success, it is always falling into error. The server side seems to be ok, the email is sent correctly, I just can not display the success and I do not understand why. PHP header('Content-type: application/json'); // D...
asked by 27.05.2015 / 17:08
1
answer

How to pass JSON array as a parameter and access its objects in another function?

Hello, I'm having trouble accessing the objects in an array of json that is passed as a parameter between two-class functions. In the functions that get the array of json, the corresponding variables are like " undefined ". I have three files...
asked by 22.03.2015 / 23:49
2
answers

Pass array of objects via javascript to the controller

How can I pass an array of javascript objects to the controller? JQUERY var array = []; var $linhas = $("#vendaTabela tbody > tr"); $linhas.each(function () { var x = { id: $(".codigo",this).text(), quantidade: $(".quantidad...
asked by 06.03.2015 / 16:18
3
answers

How to add and remove items from a json easily?

I have a json similar to this [{id: 1, titulo: 'compra', valor: 50.00, data:'2014-10-23' },{id: 1, titulo: 'compra', valor: 60.00, data:'2014-10-24' } ] I have a function to add, which adds a new item and one to remove. The add function is...
asked by 16.02.2015 / 21:51