JSON Interview Questions
What is the full form of JSON?
JSON stands for JavaScript Object Notation.
How many data types are there in JSON?
There are six types of data types in JSON -
- Number
- String
- Boolean
- Array
- Object
- Null
What is MIME type for JSON data?
MIME type is application/json.
What is the use of JSON.stringify() function?
JSON.stringify() function is used to convert a JavaScript value(Object) into a JSON string.
What is the purpose of JSON.parse() function?
This function is used to convert JSON string into a JavaScript object.
Which functions are used for encoding and decoding JSON in PHP?
For encoding, json_encode() function is used. This function takes PHP value like array as input and returns JSON representation of it. For decoding, json_decode() function is used. This function takes JSON string as input and returns associative array.
Who is the Father of JSON
Douglas Crockford is the Creator or Father of JSON.
What is JSON?
JSON full form is JavaScript Object Notation. JSON is a lightweight text-based open standard designed for human-readable data interchange
What is the file extension of JSON?
The JSON filename extension is .json.
Explain JSON with php.
Json is too much easy with php There is no installation needed to use these functions; they are part of the PHP core. nothing more need to know just only use { ,[ and create json format string and use three php function json_encode() to get JSON representation of a value, json_decode() for Decodes a JSON string, ¦json_last_error() to get the last error occurred in process.
No comments :
Post a Comment