JSON means JavaScript Object Notation. It is an open source text base standard for data exchange. Primary usage of JSON is to transmit data between web browsers and servers as alternative of XML.

Syntax rules

  • Data is a key-value pair (also reffered to as property) separated by a comma. Keys are always strings.
  • Curly brackets hold objects
  • Square brackets hold arrays

Data types

  • String
  • Object
  • Number
  • Array
  • Boolean


    "example_string":"This is string",
    "example_date":"2018-12-12 00:00:00",

In the example above you can see a JSON object with properties of different types. Important to note is that the date is presented as a string and not as different data type.

Was this article helpful?