Shares
facebook sharing button Share
twitter sharing button Tweet
email sharing button Email
linkedin sharing button Share
reddit sharing button Share
tumblr sharing button Share
blogger sharing button Share
print sharing button Print
skype sharing button Share
sms sharing button Share
whatsapp sharing button Share
arrow_left sharing button
arrow_right sharing button
 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 >>