JSON Boolean

This data type can be either true or false. 

JSON Boolean Example: 

Below is an example of JSON Boolean.

{ "result" : true }

JSON Data Types

JSON (JavaScript Object Notation) is the most widely used data format for data interchange on the web. JSON is a lightweight text-based, data-interchange format and it is completely language-independent.

Table of Content

  • JSON Data Types
  • JSON String
  • JSON Number
  • JSON Boolean
  • JSON Null
  • JSON Object
  • JSON Array

Similar Reads

JSON Data Types

JSON supports mainly 6 data types:...

JSON String:

JSON strings must be written in double quotes like C-language there are various special characters(Escape Characters) in JSON that you can use in strings such as \ (backslash), / (forward slash), b (backspace), n (new line), r (carriage return), t (horizontal tab), etc....

JSON Number:

Represented in base 10 and octal and hexadecimal formats are not used....

JSON Boolean:

This data type can be either true or false....

JSON Null:

It is just a define nullable value....

JSON Object:

It is a set of name or value pairs inserted between {} (curly braces). The keys must be strings and should be unique and multiple key and value pairs are separated by a, (comma)....

JSON Array:

It is an ordered collection of values and begins with [ (left bracket) and ends with ] (right bracket). The values of array are separated by ,  (comma)....