1) Mention what is JSON?
JSON is a simple data exchange format. JSON means JavaScript Object Notation; it is language and platform independent.
2) Explain what is JSON objects?
An object can be defined as an unordered set of name/value pairs. An object in JSON starts with {left brace} and finish or ends with {right brace}. Every name is followed by: (colon) and the name/value pairs are parted by, (comma).
3) Explain how to transform JSON text to a JavaScript object?
One of the common use of JSON is to collect JSON data from a web server as a file or HTTP request, and convert the JSON data to a JavaScript, ant then it avails the data in a web page.
4) Mention what is the rule for JSON syntax rules? Give an example of JSON object?
JSON syntax is a set of the JavaScript object notation syntax.
5) Why must one use JSON over XML?
6) Mention what is JSON-RPC and JSON Parser?
7) Mention what is the file extension of JSON?
File extension of JSON is .json
8) Mention which function is used to convert a JSON text into an object?
To convert JSON text into an object “eval” function is used.
9) Mention what are the data types supported by JSON?
Data types supported by JSON includes
10) Mention what is the role of JSON.stringify?
JSON.stringify() converts an object into a JSON text and saves that JSON text in a string.
11) Show how to parse JSON in JQuery?
To parse JSON in JQuery, we will see the example
var json = '{"name": "Guru 99", "Description ": "Learn PHP Interactively with PHP Beginner Tutorials"}' obj = $.parseJSON(json); //alert(obj.name);
12) Mention what is the function used for encoding JSON in PHP?
For encoding JSON in PHP, json_encode () function is used. This function returns the JSON representation of a value on success or false on failure.
13) Explain how you can convert a string into a JSON Array?
To convert a string into a JSON array, you need to create a JSONObject object for each of your objects, and add those to your JSON array.
14) Mention what are the JSON files?
15) List out the uses of JSON?
Uses of JSON includes
16) Mention what are the drawbacks of JSON?
Drawbacks of json are
17) Mention what is the MIME type of JSON?
MIME type for JSON text is “application/json”
18) Mention what is JSONP?
JSONP stands for JSON with padding. It is a method used to bypass the cross-domain policies in web browsers. In other words, JSONP is the simple way to deal with browser restrictions when sending JSON responses from different domains from the client.
19) Mention what is the difference between JSON and JSONP?
View Comments
Useful questions.
yes useful and quickly revised questions thankyou