Valid Key Names in JSON

In JSON, data is written in form of key-value pairs. The keys are written in double quotes and values are written according to their data …

JSON Schema

It’s often necessary for applications to validate JSON objects, to ensure that required properties are present and that additional validation constraints (such as a price …

JSON with JSONPath

JSONPath is a query language for JSON with features similar to XPath for XML. JSONPath is used for selecting and extracting a sub-section from the …

JSON with Ajax

Sending JSON request payload and receiving the JSON response object are very common tasks while dealing with AJAX and remote REST APIs. 1. AJAX with …

JSON Object

The JSON object data type is a list of name-value pairs surrounded in curly braces. JSON objects are very much like javascript objects. JSON objects …

JSON Array

1. Array Datatype in JSON Similar to other programming languages, a JSON Array is a list of items surrounded in square brackets ([]). Each item …

JSON parse()

JSON parse() method, as the name suggests, deserializes a JSON string representation to a JavaScript object. The JSON string is typically received from a remote …

JSON stringify()

The JSON.stringify() function, as name suggests, converts a JavaScript value to a serialized JSON string. JSON.stringify() can optionally use a replacer function to replace values …

JSON Data Types

At the granular level, JSON consists of 6 data types. The first four data types (string, number, boolean and null) can be referred to as …