JSON Object with data types - JSON Example

JSON Object examples with data types

JSON Object with Numbers

"integer": 756"fraction": .542"exponent"6.71789e+4  }  

JSON Object with Boolean’s

"first"true"second"false  }  

JSON Object with Strings

{  "name": "Bob",  "address": "UK",}

JSON Object with different data types

{ "name":"John", "age":36, "car":null }

JSON Nested Object Example

{      { "language":"Java" , "edition":"second" },      { "language":"C++" , "lastName":"fifth" },      { "language":"C" , "lastName":"third" }}
{  "steve" : {  "name" : "Steve",  "age" :  "29",  "gender" : "male" },"pete" : {  "name" : "Peter",  "age" : "32",  "gender" : "male"},"sop" : {  "name" : "Sophie",  "age" : "27",  "gender" : "female"}}

JSON objects in array

[{   "name" : "Steve",   "age" :  "29",   "gender" : "male"},{   "name" : "Peter",   "age" : "32",   "gender" : "male"},{   "name" : "Sophie",   "age" : "27",   "gender" : "female"}];