JSON Interview Cheatsheet
We have been using and hearing a lot about JSON, but many of us don't really know what is JSON, below is a Thread about Json and Interview Questions!
🧵Thread🧵
#100DaysOfCode #DEVCommunity
1) Mention what is JSON?
JSON is a simple data exchange format. JSON means JavaScript Object Notation; it is language and platform-independent.
#100DaysOfCode
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,.
#100DaysOfCode
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 JavaScript, and then it avails the data in a web page.
#100DaysOfCode
4) Mention what is the rule for JSON syntax rules? Give an example of a JSON object?
JSON syntax is a set of the JavaScript object notation syntax.
Data is in name/value pairs
Data is separated by comma
Curly brackets hold objects
Square bracket holds arrays
#100DaysOfCode