i'm using phonegap in order to make an application, then i'm using CodeIgniter as an API. To get the data, i'm using a simple $.post from jQuery to a REST URL in CodeIgniter.
$.post(DIR+trad+"/format/json", function(data){
traducciones = jQuery.parseJSON(data);
}, json);
Based upon this, i got 2 questions, because i don't know if i should do it in different post methods.
The first question is, how do i get the data in json format? The second question is, is there any way to call the json object directly from my view (HTML) ? or i need to do it using jquery or javascript?