What is JSON?
It is text-based standard design for interchange the information Between two or more different application. It is also very light as compare to XML and human readable.
What is full Form JSON?
JavaScript Object Notation.
Who created the JSON?
Who is Father of JSON?
Why it is so popular?
- It is light weight standard for exchange information
- It is independent of language
- It is independent of Hosting Server
- Human Readable
- Easy to Encode
- Easy to Decode
- Used in Mobile application
Where JSON is used?
It is used to transfer the information between two application. Information can also be exchanged between two different application which is running on different OR same server. It is used in Web Application, Mobile Application (IOS, Android, Iphone, window Phone)
What is file extension of JSON?
Why Use JSON over XML?
- It is light weight standard for exchange information.
- Human readable
- Easy to parse in PHP as well as in javaScript.
- Due to light weight It is fast.
Can you explain JSON Structures?
- It as an object, structure, or associative array where we stored data an ordered list.
- Each value have an key
- once key may have an further object
- Its lightweight that’s why used in android application
- A JSON object begins with { and ends with } (braces)
- Each name is followed by : (colon) and the name/value pairs are separated by , (comma)
Which Browser Support JSON?
JSON support is included in newer browsers and in the newest ECMAScript (JavaScript) standard.
Firefox (Mozilla)
Internet Explorer
Chrome
Opera
Safari
What is JSON Parser?
JSON Parser is used to parse the JSON data into object to use its value. JSON can be parse by javaScript, jQuery and PHP.
What is JSON-RPC?
Remote Procedure call protocol with use of JSON. It is similar to XML-RPC only difference, It use JSON instead of XML.
What is JSON-RPC-Java?
JSON-RPC-Java is a Java implementation of the JSON-RPC protocol.
How to create json from php array?
$array = array(‘name’=>’interviewgig’,’Description’=>’Web technology experts notes’);
echo json_encode($array);
How to get PHP array from json Object?
$object='{“name”:”interviewgig”,”Description”:”Expert in web technology”}’;
$array = json_decode($object);
How to parse JSON in JavaScript?
var json = ‘{“name”:”interviewgig”,”Description”:”Web technology experts notes”}’
   var obj = JSON.parse(json);
   //alert(obj.name);
How to create JSON Object from JavaScript?
var obj = {};
   obj[‘name’]=’interviewgig.blogspot.in’; //string
   obj[‘age’] = 32; // integer.
   obj[‘marks’]= [80,70,60,50,60,80]; //array
How to parse JSON in jQuery?
var json = ‘{“name”:”interviewgig”,”Description”:”Web technology experts notes”}’
   obj = $.parseJSON(json);
   //alert(obj.name);
How to Validate json in php?
$json = ‘{“name”:”interviewgig”,”Description”:”Web technology experts notes”}’;
$obj = json_decode($json);
if(is_null($obj)) {
 die(‘Invalid JSON’);
}
How to Validate json in javascript?
function isValidJson(jsonData) {
   try {
       JSON.parse(jsonData);
       return true;
   } catch (e) {
       return false;
   }
}
var json = ‘{“name”:”Interviewgig”,”Description”:”Web technology experts notes”}’
isValidJson(json);
How to Validate json in jQuery?
function isValidJson(jsonData) {
   try {
       $.parseJSON(jsonData);
       return true;
   } catch (e) {
       return false;
   }
}
var json = ‘{“name”:”interviewgig”,”Description”:”Web technology experts notes”}’
isValidJson(json);
How Convert json object to json string in jquery?
var json = ‘{“name”:”interviewgig”,”Description”:”Web technology experts notes”}’
JSON.stringify(json)
How to convert json object to json string in javaScript?
var json = ‘{“name”:”interviewgig”,”Description”:”Web technology experts notes”}’
JSON.stringify(json)
How to receive JSON Data at the Client Side?
var json = ‘{“name”:”interviewgig”,”Description”:”Web technology experts notes”}’
obj = $.parseJSON(json)
How to get JSON response in Ajax?
$.ajax({
 dataType: “json”,
 url: ‘/ajax/url’,
 data: ‘name=interview gig interview’,
 success: function(data){
 //data
 }
});
What are online tool for Validate JSON data?
http://jsonlint.com/
http://www.freeformatter.com/json-validator.html
What are JSON online tool for Formatter & Validator?
Answer: http://jsonlint.com/
http://www.freeformatter.com/json-validator.html
http://jsonviewer.stack.hu/
http://json.parser.online.fr/