Sample 1: Simple Object
{
"page": "Json Parser Online",
"year": 2024,
"type": "application/json",
"function": [
"parse",
"stringify"
]
}
Sample 2: Nested Object with Array
{
"product": {
"id": 123,
"name": "T-Shirt",
"price": 19.99,
"stock": 100
},
"reviews": [
{
"author": "Alice",
"rating": 5,
"comment": "Great quality!"
},
{
"author": "Bob",
"rating": 4,
"comment": "Good value for money."
}
]
}
Sample 3: Object with Boolean and Array
{
"id": "abc123",
"isActive": true,
"tags": [
"development",
"javascript",
"react"
]
}
Sample 4: Object with Date
{
"message": "Hello, world!",
"timestamp": "2024-03-16T16:13:00Z",
"store": {
"name": "MegaCorp",
"location": {
"address": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345"
},
"departments": [
{
"name": "Electronics",
"inventory": [
{
"product_id": 1001,
"name": "Laptop",
"price": 799.99,
"stock": 10
},
{
"product_id": 1002,
"name": "Headphones",
"price": 49.99,
"stock": 25
}
]
},
{
"name": "Clothing",
"inventory": [
{
"product_id": 2001,
"name": "T-Shirt",
"price": 19.99,
"size": "M",
"color": "red"
},
{
"product_id": 2002,
"name": "Jeans",
"price": 49.99,
"size": "32",
"color": "blue"
}
]
}
],
"customers": [
{
"name": "John Doe",
"id": 1234,
"purchase_history": [
{
"order_id": 5001,
"date": "2023-11-21",
"items": [
{
"product_id": 1001,
"quantity": 1
}
]
}
]
}
]
}
}
Sample 5: Nested Object with Array
{
"university": {
"name": "Horizon University",
"established": 1870,
"campus": {
"location": "Sunnyvale, CA",
"area": 200,
"buildings": [
{
"name": "Main Hall",
"year_built": 1870,
"departments": [
"History",
"Literature"
]
},
{
"name": "Science Center",
"year_built": 1965,
"labs": [
"Chemistry",
"Physics",
"Biology"
]
}
]
},
"colleges": [
{
"name": "College of Arts & Humanities",
"departments": [
"History",
"Literature",
"Philosophy",
"Languages"
]
},
{
"name": "College of Science & Engineering",
"departments": [
"Computer Science",
"Mathematics",
"Physics",
"Chemistry"
]
}
],
"students": [
{
"name": "Alice Smith",
"id": 12345,
"major": "Computer Science",
"courses": [
{
"code": "CSC101",
"name": "Introduction to Programming"
},
{
"code": "MATH220",
"name": "Calculus II"
}
]
},
{
"name": "Bob Jones",
"id": 54321,
"major": "History",
"courses": [
{
"code": "HIST101",
"name": "Western Civilization I"
},
{
"code": "LIT202",
"name": "British Literature"
}
]
}
]
}
}