JSON Interview Questions and Answers
JSON Interview Questions and Answers
JSON (JavaScript Object Notation) is a data storage and communication format based
on key-value pair of JavaScript object literals. It is a lightweight text-based open
standard designed for human-readable data interchange which is derived from the
JavaScript programming language for representing simple data structures and
associative arrays, called objects.
In JSON
Example Usage:
var obj={"website":"Onlineinterviewquestions"};
JSON.stringify(obj); // '{"website":"Onlineinterviewquestions"}'
3. List types Natively supported by JSON?
JSON supports Objects, Arrays, Primitives (strings, numbers, boolean values (true/false),
null) data types
Object.create creates a new object with the specified prototype object and properties.
It returns true if the property was set on actual object rather than inherited.
object literals
Object.create
constructors
A plain, empty object that derives from Object.prototype is the default value of a
constructor’s prototype
JSON: JSON is a simple data format used for communication medium between
different systems
JSONP: It is a methodology for using that format with cross-domain ajax
requests while not being affected by same origin policy issue.
11. Who is the Father of JSON and What is the scripting language
JSON is based on?
14.What is BSON?
BSON is the superset of JSON, which used by MongoDB.BSON supports the embedding
of documents and arrays within other documents and arrays. BSON also contains
extensions that allow representation of data types that are not part of the JSON spec.
Source : https://www.onlineinterviewquestions.com/json-interview-questions/