Interview Questions

JSON Interview Questions & Answers

Now, a days majority of APIs use JSON as a format of data exchange. It has become necessary for an interviewee to prepare for JSON interview questions. Practice the below interview questions to ace your interview easily.

1) What is the full form of JSON?

JSON stands for JavaScript Object Notation.

2) What is the definition of JSON?

It is a text-based format and designed for the exchange of data between two different systems. It is lightweight data-interchange format as compare to XML. It uses JavaScript syntax. JSON data can be read and use by any programming language.

3) What is JSON used for?

JSON is used for communication between server side technologies and mobile app or website.

4) What is the file extension of JSON?

The file extension of JSON is .json.

5) What is the rule for writing JSON?

JSON is the collection of key and value pair separated by the comma.

Key and value are separated by the colon (:).

Square brackets are used to store JSON array.

Curly brackets are used to hold JSON objects.

6) How many data types are there in JSON?

There are six types of data types in JSON -

Number

String

Boolean

Array

Object

Null

7) JSON vs. XML?

XML requires XML parser to parse it. JSON is parsed with the help of JavaScript functions.