JSON Interview Questions & Answers

5) Why must one use JSON over XML?

  • It is faster and lighter than XML as on the wire data format
  • XML data is typeless while JSON objects are typed
  • JSON types: Number, Array, Boolean, String
  • JSON types: Number, Array, Boolean, String
  • Fetching values is as simple as reading from an object property in your JavaScript code.

6). Mention what is JSON-RPC and JSON Parser?

  • JSON RPC:It is a simple remote procedure call protocol same as XML-RPC although it uses the lightweight JSON format instead of XML
  • JSON Parser:JSON parser is used to parse the JSON data into objects to use its value. It can be parsed by javaScript, PHP and jQuery.

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.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s