JSON Interview Questions and Answers
What is JSON?
Is it possible to have an array of JSON or JSON having the array as values?
Yes, it is possible to do so. We can define a key in JSON having an array as value and we also can define an array having a JSON as value.
What is the use of JSON?
JSON is used to exchange data from the server. Since it is a text string, it is faster than any other format like XML.
What is JSON.parse() ?
JSON.parse() , parse the JSON string and return an full fetured object.
What is JSON.stringify()?
JSON.stringify(), convert the JSON Objects into string.
How can we handle the JSON in PHP?
What is JSONP?
JSONP is called JSON with Padding. This is used to exchange data on cross sites protocols.