I have not worked with json yet. and have no idea how it works
I want to use jquery for performing ajax with php file. is it advisable to use json here.
heard from someone that json is light weight. Is that true? if yes how would i use json for ajax-php peration with jquery
I have not worked with json yet. and have no idea how it works
Share
JSON is an information interchange format based on JavaScript literal notation (but is actually a subset of literal notation, you may only use strings, numbers, objects, booleans and arrays, from memory).
Unless you need to receive data back, you won’t use it. It is lightweight compared to something like XML.
If you need to get JSON using jQuery, you can use the high level AJAX API call called
getJSON()which is as simple as….jQuery
PHP
If you wanted to throw away requests that don’t look like AJAX, use this…