JSON Assignment– 1
Basic Questions
- Create a JSON string for a student with name, age, and course.
- Write a JSON object to store a book with title, author, and price.
- Create a JSON array with 5 city names.
- Write a JSON object to store an employee with id, name, and isActive (boolean).
- Create a JSON object for a product with a nested category object.
- Write a JSON object to store a user’s hobbies as an array.
- Create a JSON object where a student has a nested address object.
- Write a JSON array containing 3 objects, each with id and name.
- Create a JSON object for a company with an array of 2 employees.
- Write a JSON object for a person having an array of skills.
- Create a JSON object for a product that stores multiple images in an array.
- Write a JSON object for a movie with title, year, and actors (array).
- Create a JSON object for a car with brand, model, year, and features (array).
- Write a JSON object for a person’s phone numbers as an array of objects.
- Create a JSON object for a course with an array of multiple students.
- Write a JSON object for a laptop with name, price, and a nested specifications object.
- Create a JSON object for a restaurant menu with an array of food items {name, price}.
- Write a JSON object for a football team with a list of players.
- Create a JSON object for a teacher with subjects (array) and a nested details object.
- Write a JSON object for an order with orderId, customer, and an items array.
Intermediate Level
- Write a JSON object for a student with subjects and their marks.
- Create a JSON object for a flight with flightNo, departure, arrival, and a nested array of passengers.
- Write a JSON object for a hospital with multiple doctors and their patients.
- Create a JSON object for an online store with a products array, each having id, name, price, and stock.
- Write a JSON object for a cricket match with team1 and team2 player arrays.
- Create a JSON object for a music album with albumName, releaseYear, and a songs array.
- Write a JSON object for a classroom with a students array of {rollNo, name, marks}.
- Create a JSON object for a bank account with accountNo, holderName, and a transactions array.
- Write a JSON object for a hotel with a rooms array of {roomNo, type, price, isAvailable}.
- Create a JSON object for a library with multiple books and their authors.
- Write a JSON object for a university with departments (array) and multiple professors per department.
- Create a JSON object for an online course with title, instructor, students (array), assignments (array).
- Write a JSON object for a company with multiple departments and employees in nested structure.
- Create a JSON object for an e-commerce cart with multiple products and totalAmount.
- Write a JSON object for a social media post with postId, user, content, likes, comments (array).
- Create a JSON object for a delivery order with orderId, customer, address, and deliveryStatus.
- Write a JSON object for a bank loan with loanId, customerName, loanAmount, and installments (array).
- Create a JSON object for a school timetable with nested arrays.
- Write a JSON object for a gaming leaderboard with rank, playerName, score.
- Create a JSON object for a shopping wishlist with user and items (array of products).
Advanced Questions
- Create a JSON object for an e-commerce website order history with customers, orders, and products.
- Write a JSON object for a hospital management system with doctors, patients, appointments, and prescriptions.
- Create a JSON object for an airline system with flights, passengers, tickets, and baggage.
- Write a JSON object for a sports tournament with multiple matches, teams, and scores.
- Create a JSON object for a school system with students, teachers, exams, and results.
- Write a JSON object for a real estate system with properties, owners, buyers, and transactions.
- Create a JSON object for a movie database with movies, directors, actors, and reviews.
- Write a JSON object for a university system with faculties, departments, courses, and enrolled students.
- Create a JSON object for an e-commerce admin panel with users, orders, refunds, and payments.
- Write a JSON object for a travel booking system with users, trips, hotels, flights, an