Let’s see json interview questions and answers

What is MIME format type JSOn file content

MIME is abbreviated as Multipurpose Internet Mail Extensions, It is a format used to send in request and response, transferred between client and server across internet. Content-Type and accept headers in a request object are specified with this format following is the mime type for this documents


and request contains the below value for INI data sending over the internet

Content-type : application/json

How do open a json files.

JSON files are with key and values with extensions. It includes plain text content with special rules.

All the popular IDE supports the json file extension and also provides plugins to validate the json file content.

  • Notepad++
  • Eclipse
  • Visual Studio Code

What is JSON file used for?

JSON file is used to transfer data between Client and Server using HTTP API’s. It can also be used to store environment information for configuration.

What is difference between JSON and XML?

JSON is a simple javascript object notation with key and value of data types XML is Extensible markup language with data of no type

javascript object notation Extensible markup language
Complex data format based on schema Light weight data format
Easy to read by humans It is very difficult to read by humans
Data is represented as key and values like objects It has start and end tags
Supports Array with list of values No support for arrays
Comments are not supported Allows Comments
Limited Security support Security is good
Encoding is UTF-8 Supports all encodings UTF-8, ISO-8859-1, etc