Created
September 10, 2024 18:08
-
-
Save EvanMarie/ff0234848fdae231506df546f9832c87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const JSONExamples = [ | |
`{ | |
"posts": [ | |
{ | |
"id": 1, | |
"title": "How to Learn JavaScript", | |
"author": "Alice Johnson", | |
"published": "2024-09-01", | |
"tags": ["JavaScript", "Programming", "Web Development"], | |
"content": "JavaScript is a versatile programming language used for web development..." | |
}, | |
{ | |
"id": 2, | |
"title": "The Ultimate Guide to Traveling Europe", | |
"author": "Bob Williams", | |
"published": "2024-08-15", | |
"tags": ["Travel", "Europe", "Guides"], | |
"content": "Europe offers a wide range of experiences, from historical landmarks..." | |
}, | |
{ | |
"id": 3, | |
"title": "Mastering Python for Data Science", | |
"author": "Clara Lin", | |
"published": "2024-07-22", | |
"tags": ["Python", "Data Science", "Programming"], | |
"content": "Python has become the go-to language for data science due to its simplicity and powerful libraries..." | |
}, | |
{ | |
"id": 4, | |
"title": "The Best Hiking Trails in South America", | |
"author": "Daniel Rodriguez", | |
"published": "2024-06-30", | |
"tags": ["Travel", "Hiking", "South America"], | |
"content": "Explore the most breathtaking hiking trails across South America's diverse landscapes..." | |
} | |
] | |
}`, | |
`{ | |
"users": [ | |
{ | |
"id": 1, | |
"name": "John Doe", | |
"email": "[email protected]", | |
"age": 28, | |
"country": "USA", | |
"interests": ["technology", "gaming", "traveling"] | |
}, | |
{ | |
"id": 2, | |
"name": "Jane Smith", | |
"email": "[email protected]", | |
"age": 34, | |
"country": "Canada", | |
"interests": ["cooking", "reading", "cycling"] | |
}, | |
{ | |
"id": 3, | |
"name": "Ahmed Khan", | |
"email": "[email protected]", | |
"age": 25, | |
"country": "Pakistan", | |
"interests": ["photography", "cricket", "hiking"] | |
}, | |
{ | |
"id": 4, | |
"name": "Maria Garcia", | |
"email": "[email protected]", | |
"age": 29, | |
"country": "Spain", | |
"interests": ["dancing", "painting", "traveling"] | |
}, | |
{ | |
"id": 5, | |
"name": "Liu Wei", | |
"email": "[email protected]", | |
"age": 31, | |
"country": "China", | |
"interests": ["gardening", "running", "reading"] | |
} | |
] | |
}`, | |
`{ | |
"products": [ | |
{ | |
"id": 101, | |
"name": "Wireless Headphones", | |
"category": "Electronics", | |
"price": 59.99, | |
"stock": 120, | |
"ratings": { | |
"average": 4.5, | |
"reviews": 432 | |
} | |
}, | |
{ | |
"id": 102, | |
"name": "Coffee Maker", | |
"category": "Home Appliances", | |
"price": 99.95, | |
"stock": 30, | |
"ratings": { | |
"average": 4.2, | |
"reviews": 134 | |
} | |
}, | |
{ | |
"id": 103, | |
"name": "Smart Watch", | |
"category": "Wearables", | |
"price": 199.99, | |
"stock": 75, | |
"ratings": { | |
"average": 4.7, | |
"reviews": 543 | |
} | |
}, | |
{ | |
"id": 104, | |
"name": "Electric Scooter", | |
"category": "Outdoor", | |
"price": 299.99, | |
"stock": 45, | |
"ratings": { | |
"average": 4.3, | |
"reviews": 98 | |
} | |
}, | |
{ | |
"id": 105, | |
"name": "Bluetooth Speaker", | |
"category": "Electronics", | |
"price": 39.95, | |
"stock": 200, | |
"ratings": { | |
"average": 4.6, | |
"reviews": 320 | |
} | |
} | |
] | |
}`, | |
`{ | |
"locations": [ | |
{ | |
"city": "New York", | |
"country": "USA", | |
"temperature": { | |
"current": 22, | |
"min": 18, | |
"max": 26, | |
"unit": "Celsius" | |
}, | |
"humidity": 60, | |
"wind": { | |
"speed": 12, | |
"direction": "NW" | |
}, | |
"forecast": [ | |
{ | |
"day": "Monday", | |
"temperature": { | |
"min": 20, | |
"max": 25 | |
}, | |
"condition": "Partly Cloudy" | |
}, | |
{ | |
"day": "Tuesday", | |
"temperature": { | |
"min": 21, | |
"max": 27 | |
}, | |
"condition": "Sunny" | |
} | |
] | |
}, | |
{ | |
"city": "Tokyo", | |
"country": "Japan", | |
"temperature": { | |
"current": 27, | |
"min": 24, | |
"max": 30, | |
"unit": "Celsius" | |
}, | |
"humidity": 70, | |
"wind": { | |
"speed": 15, | |
"direction": "E" | |
}, | |
"forecast": [ | |
{ | |
"day": "Monday", | |
"temperature": { | |
"min": 23, | |
"max": 29 | |
}, | |
"condition": "Rain" | |
}, | |
{ | |
"day": "Tuesday", | |
"temperature": { | |
"min": 25, | |
"max": 31 | |
}, | |
"condition": "Cloudy" | |
} | |
] | |
}, | |
{ | |
"city": "Sydney", | |
"country": "Australia", | |
"temperature": { | |
"current": 18, | |
"min": 16, | |
"max": 22, | |
"unit": "Celsius" | |
}, | |
"humidity": 50, | |
"wind": { | |
"speed": 10, | |
"direction": "SE" | |
}, | |
"forecast": [ | |
{ | |
"day": "Monday", | |
"temperature": { | |
"min": 17, | |
"max": 23 | |
}, | |
"condition": "Clear" | |
}, | |
{ | |
"day": "Tuesday", | |
"temperature": { | |
"min": 18, | |
"max": 24 | |
}, | |
"condition": "Partly Cloudy" | |
} | |
] | |
} | |
] | |
}`, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment