Berkenalan dengan JSON

Syntax JSON:

Data ditulis secara berpasangan
“firstName” : “Hilwa”
Data dipisahkan oleh koma
{ “firstName”:”Wirda” , “lastName”:”Hilwa” }
Object memakai kurung keriting {}
{
“name”:”Wirda Hilwa”,
“street”:”Komp.Purinusa Cluster Kenari A/9″,
“age”:27,
“phone”:”7654321″}

Array memakai kurung kotak []
{
“mahasiswa”: [
{ “firstName”:”Tra” , “lastName”:”Lala” },
{ “firstName”:”Tri” , “lastName”:”Lili” },
{ “firstName”:”Shu” , “lastName”:”Bidu” }
]
}

One thought on “Berkenalan dengan JSON

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s