RealTime Example of JSON Data with Product information:
{ “$schema”: “http://json-schema.org/draft-04/schema#”, “title”: “Product”, “description”: “A product from Acme’s catalog”, “type”: “object”, “properties”: { “id”: { “description”: “The unique
{ “$schema”: “http://json-schema.org/draft-04/schema#”, “title”: “Product”, “description”: “A product from Acme’s catalog”, “type”: “object”, “properties”: { “id”: { “description”: “The unique
{“Employees”:[{“name”:”Ram”, “email”:”ram@gmail.com”, “age”:23}, {“name”:”Shyam”, “email”:”shyam23@gmail.com”, “age”:28}, {“name”:”John”, “email”:”john@gmail.com”, “age”:33}, {“name”:”Bob”, “email”:”bob32@gmail.com”, “age”:41}]}
{ “firstName”: “Sonoo”, “lastName”: “Jaiswal”, “age”: 27, “address”: { “streetAddress”: “Plot-6, Mohan Nagar”, “city”: “Ghaziabad”, “state”: “UP”, “postalCode”: “201007” }}
[{“id”: 1, “name”: “Pen”, “price”: 10},{“id”: 2, “name”: “Pencil”, “price”: 5},{“id”: 3, “name”: “Marker”, “price”: 15},{“id”: 4, “name”: “Sketch”, “price”: 10},{“id”: 5, “name”: “Scale”, “price”:
JSON syntax is derived from JavaScript object notation syntax Data Rules Example 1 Should be in key value pairs “name”:”samuel” 2 Should be separated by
Data Type Information Example 1 Number decimal number , Number with fractional part and d may use exponential E notation 111 or 112.22 or 4.2E+1
Sample JSON Example: JSON Data: [ { “StudentID”: “STD-001”, “StudentName”: “Vardman Saaho”, “Student1stLanguage”: “Gujarati”, “Student2ndLanguage”: “Hindi” }, { “StudentID”: “STD-002”, “StudentName”: “Karman Varadi”, “Student1stLanguage”: “Kannada”, “Student2ndLanguage”: “Hindi” }, { “StudentID”: “STD-003”, “StudentName”: “Vikram Singh”, “Student1stLanguage”: “Punjabi”, “Student2ndLanguage”: “Hindi” }] Table: