what's faster on iPhone? XML pList or JSON?
Assuming both XML plist and JSON are delivered over http, gzipped, which one will be processed faster on an iPhone? ...
Assuming both XML plist and JSON are delivered over http, gzipped, which one will be processed faster on an iPhone? ...
Hello, I hope this isn't too confusing, but i think it's fairly basic. I am trying to pre-populate some data into a form, which was previously entered into a form and then populates the form again on a future date (like a save feature) So when the user SAVES the form, it inputs into the Database JSON data of the entire form fields an...
For the site I am building I want the user to be able to search for a location, however because I don't have a list of locations for the UK, I have developed a script in PHP which calls: http://ajax.googleapis.com/ajax/services/search/local in order to get the lat and lon coordinates of this location to store in the database for future u...
Is there any good article that gets me started with Google Visualization API which i ll be using in my application for drawing charts with JSON data. Any suggestion. EDIT: I was going through this question Iterating over json object for drawing a column chart?. This is what exactly i am trying to do? Any good ex? ...
I want a JSON schema that enforces an empty JSON instance, e.g. {} Is this a good idea and possible? I tried the following but it allows me to enter anything in the JSON body: { "description": "voice mail record", "type": "object", "additionalProperties": false, "properties": { } } } ...
can somebody tell me how to populate "jquery fullcalendar" events using ajax. There is no setter method provided in fullcalendar to set ajax response (which is Json object) after calendar object loads. Is there any way to feed data after calendar object loads? In my case very first time I provide data in fullcalendar "event:" property ...
Hello, How can i read JSON data in Sproutcore? ...
I have a model with a json field. The contents of which may or may not be pretty-printed, I don't really mind either way as long as the data is valid. However when it is displayed in django admin I would like for the contents of the field to be pretty printed so that it is easy to read. I don't mind if this means the pretty printed versi...
This is link which is explaining in detail, the problem i am facing right now. I am getting a frequent exception whenever a call made to my web services. It returns appropriate results but still complaining about URL format.:- Request format is unrecognized for URL unexpectedly ending in /WebServiceMethod So what do you sugges...
Hi Gurus I'm running a PHP Script that updates a table from a Oracle DB. First I receive an object with JSON: [{"lot":"KLMHA17N9N00","requestor":"B10078","id":"FRESHLOT","username":"B26696","password":"B26696"},{"lot":"KLMHA17R1800","requestor":"B10078","id":"FRESHLOT"}] That with no problems since I've been using JSON in other proje...
I'm using the following for a long-polling request (this is a plugin similar to getJSON)... $.jsonp({ "url": url, "data": { "settings", settings }, "success": function(userProfile) { // handle user profile here }, "error": function(d,msg) { alert("Could not find user "+userId); } }); The request won't ...
Hi, I have a json object that i send as a template variable to my html template. If i have an external .js file what is the best way to pass it to it? I read on another thread to declare the var inside the <script> tag in the <header>, but that would open up security issues? What is the standard way? Thanks, David ...
I'm calling in values using PHP to cURL a site's API. I'm able to pull the data in and put into an array just fine, but when using JSON, one of the attributes ($title) comes back with too much data. For example, if I just do echo $new_array[27]['title']; -> I get "Event Name" but if I do echo json_encode($new_array[27]['title']); ...
hi, I am facing issue to access the json object in FF and chrome . But in ie 8 its working fine. i am able to get the json object fine in ie8 but when i use FF and chrome i am getting null josn object. please find below my code. $.ajax({ type: "POST", beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRe...
Hello, How can i preview the JSON output of an MVC Action that uses Jsonresult? ...
I have a bit of a complex situation. I am building an iPhone app with a rails backend. There are two model objects, a chat session and a person. They are defined as follows: class Person < ActiveRecord::Base belongs_to :chatsession end class Chatsession < ActiveRecord::Base has_many :people belongs_to :leader, :class_name => "Person" ...
I use Services_JSON class download form PEAR when i call Services_JSON::encode() and get a string i see my link before encode like that http://lh5.ggpht.com/_gBueIqC8cnk/Sv9FvDspVLI/AAAAAAAAAoY/-ShqI3H-Hsg/słońce32 opalenier.jpg and after encode , look like that: http:\/\/lh5.ggpht.com\/_gBueIqC8cnk\/Sv9FvDspVLI\/AAAAAAAAAoY\/-ShqI...
function json (url){ $.getJSON(url, function(data) { return data; }) } this function don't see "data" function MakeAlert(){ data = json('action.php'); window.alert(data.name); } this work: function json (url){ $.getJSON(url, function(data) { window.alert(data.nam...
I use, google.load('visualization', '1', {'packages': ['columnchart']}); //google.setOnLoadCallback(drawChart); function drawChart(response) { alert(response.customerlist); var data = new google.visualization.DataTable(); data.addColumn('string', 'dbZipcode'); data.addColumn('string', 'countusers'); data.addRows(resp...
Is there any JSON parser/stringifier for Javascript that does not add anything to the prototype (like Date.prototype)? Because my script is going to be used as a third party script, I want to eliminate the conflicts it may cause. I am not keen on writing my own serializer/desrializer beacuse probably this was done somewhere else, and b...