Jul 3, 2018
3 mins read
This article will have all the JSON Examples which covers each and every data type JSON supports. Here is the list of JSON data types.
|
|
This example shows information about a person, and you know Tom Cruise. This JSON data represent details which contain the string. Play with JSON String Example. String in JSON has to be in double-quotes.
|
|
This example shows how to represent the numbers and I have added the birthday details of Tom Cruise. I have added this in 2018. So you can do the math if this is not 2018. 🙂 Play with JSON Number Example. Numbers in JSON has to be an integer or a floating-point.
|
|
This JSON data represent the detail about the actor and its property. It is a JSON object which can have different properties. Play with JSON Object Example.
|
|
This is an Array of JSON data. It shows two actor objects and each object can have its own properties. Play with JSON Array Example.
|
|
This JSON Example shows how to represent Boolean values in JSON. Play with JSON Boolean Example. Boolean value has to be true or false.
|
|
JSON Null Example shows how to represent Null values in JSON. Play with JSON Null Example. Null will help to represent value as not available.
I have explained all the Six JSON data types in the above examples.
|
|
Play JSON Example with all data types.
I hope this article will help to understand the JSON data. If you want to know more about JSON check out this article. What is JSON?.