Krivalar Tutorials 
Krivalar Tutorials

JSON-Array


What is JSON? JSON_Syntax JSON_Data Types JSON_vs_XML JSON_Array JSON_Object

JSON Array Example

The following table shows the examples of JSON array representation with different values.

Data typesJSON Array Examples

Number:

JSON array stores number values

{
	"car_id" : [103,146,289,100]
}

String:

JSON array stores string values

{
 "car_color":["Red","Blue","Black","Yellow","Pink"]
}

Boolean:

JSON array stores boolean values

{
	[true,true,false,true]
}

Object:

JSON array stores 3 object values

{
 "car":[
{"Name":"Tata","Type":"Sedan","Color":"Blue"},   {"Name":"Maruti","Type":"Hetchback","color":"Red"}, {"Name":"Hyundai","Type":"SUV","Color":"Gray"} ] }

<< Previous - JSON JSON vs XML

Next - JSON Object >>