Understanding JSON Schema for Beginners

JSON (JavaScript Object Notation) is a lightweight format that is used for data interchanging.

It began as a notation for the world wide web. Since JavaScript exists in most web browsers, and JSON is based on JavaScript, it’s very easy to support there. However, it has proven useful enough and simple enough that it is now used in many other contexts that don’t involve web surfing.

An example of where this is used is web services responses. In the ‘old’ days, web services used XML as their primary data format for transmitting back data, but since JSON appeared (The JSON format is specified in RFC 4627 by Douglas Crockford), it has been the preferred format because it is much more lightweight.

JSON is built on the following data structures:

  • Object : { “Name1”: “value1”, “Name2”: “value2” }
  • Array : [ “one”, “two”, “three” ]
  • Number : 52 _ 5.225511
  • String : “This Is A New String”
  • Boolean : true , false
  • Null : null

JSON Structure :

With these simple data types, all kinds of structured data can be represented.

For example, imagine representing information about a person in JSON in different ways:

We may have noticed that the JSON Schema itself is written in JSON. It is data itself, not a computer program. It’s just a declarative format for “describing the structure of other data”.

find more info on  JSON web site.

I hope that’s Clear & Simple.

We just need some basics to start with Firebase Real-time Database.

Until thenhave a good time.

Android Dev

Android Developer.

Leave a Reply

Your email address will not be published. Required fields are marked *