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 requests and responses, transferred between client and server across the internet. Content-Type and Accept headers in a request object are specified with this format following is the mime type for these 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 keys 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.
- Visual Studio Code
What is the JSON file used for?
The JSON file is used to transfer data between Client and Server using HTTP apis. It can also be used to store environment information for configuration.
What is the difference between JSON and XML?
|Complex data format based on schema||Lightweight 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 a 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|