Skip to main content

Examples of Student List in JSON Format

A student list in JSON format is a way to represent a list of students and their respective information in a structured and organized manner.

Here is a JSON code snippet that lists students with name, age, height, and major:

{
   "students":[
      {
         "name":"John Smith",
         "age":22,
         "height":"6'0",
         "major":"Computer Science"
      },
      {
         "name":"Jane Doe",
         "age":20,
         "height":"5'7",
         "major":"Business Administration"
      },
      {
         "name":"Bob Johnson",
         "age":25,
         "height":"6'2",
         "major":"Electrical Engineering"
      },
      {
         "name":"Samantha Williams",
         "age":21,
         "height":"5'5",
         "major":"Biology"
      },
      {
         "name":"Michael Brown",
         "age":23,
         "height":"5'10",
         "major":"Chemistry"
      },
      {
         "name":"Emily Jones",
         "age":24,
         "height":"5'6",
         "major":"Mathematics"
      },
      {
         "name":"James Taylor",
         "age":20,
         "height":"6'1",
         "major":"Physics"
      },
      {
         "name":"Jessica Davis",
         "age":22,
         "height":"5'4",
         "major":"Political Science"
      },
      {
         "name":"William Thompson",
         "age":24,
         "height":"6'3",
         "major":"Psychology"
      },
      {
         "name":"Ashley Johnson",
         "age":21,
         "height":"5'8",
         "major":"Sociology"
      },
      {
         "name":"David Anderson",
         "age":23,
         "height":"5'11",
         "major":"Anthropology"
      },
      {
         "name":"Sara Smith",
         "age":25,
         "height":"5'5",
         "major":"Geology"
      },
      {
         "name":"Christopher Davis",
         "age":24,
         "height":"6'0",
         "major":"Astronomy"
      },
      {
         "name":"Elizabeth Williams",
         "age":21,
         "height":"5'7",
         "major":"Environmental Science"
      },
      {
         "name":"Mark Thompson",
         "age":23,
         "height":"6'2",
         "major":"Biological Engineering"
      },
      {
         "name":"Brittany Jones",
         "age":20,
         "height":"5'5",
         "major":"Marine Biology"
      },
      {
         "name":"Scott Brown",
         "age":22,
         "height":"5'10",
         "major":"Zoology"
      },
      {
         "name":"Karen Taylor",
         "age":25,
         "height":"5'6",
         "major":"Ecology"
      },
      {
         "name":"Alex Smith",
         "age":21,
         "height":"5'8",
         "major":"Biology"
      },
      {
         "name":"Sarah Johnson",
         "age":22,
         "height":"5'4",
         "major":"Computer Science"
      },
      {
         "name":"Jason Williams",
         "age":24,
         "height":"6'3",
         "major":"Political Science"
      },
      {
         "name":"Megan Davis",
         "age":20,
         "height":"5'7",
         "major":"Mathematics"
      },
      {
         "name":"Richard Thompson",
         "age":25,
         "height":"6'1",
         "major":"Physics"
      },
      {
         "name":"Emily Jones",
         "age":23,
         "height":"5'5",
         "major":"Psychology"
      },
      {
         "name":"Alexis Taylor",
         "age":21,
         "height":"5'8",
         "major":"Sociology"
      },
      {
         "name":"Charles Anderson",
         "age":24,
         "height":"6'2",
         "major":"Anthropology"
      },
      {
         "name":"Stephanie Williams",
         "age":22,
         "height":"5'4",
         "major":"Geology"
      },
      {
         "name":"David Johnson",
         "age":25,
         "height":"6'0",
         "major":"Astronomy"
      }
   ]
}

Here is another example of students:

{
  "students": [
    {
      "id": 1,
      "firstName": "John",
      "lastName": "Doe",
      "age": 20,
      "major": "Computer Science"
    },
    {
      "id": 2,
      "firstName": "Jane",
      "lastName": "Smith",
      "age": 21,
      "major": "Biology"
    },
    {
      "id": 3,
      "firstName": "Bob",
      "lastName": "Johnson",
      "age": 22,
      "major": "Business"
    }
  ]
}

In this example, the student list is contained within a JSON object with a key of "students" and an array of student objects as the value. Each student object contains the student's id, first name, last name, age, and major.

Using a student list in JSON format allows for easy storage and retrieval of student information. It can be used in a variety of applications, such as a student database or a student management system. JSON is also widely supported by many programming languages, making it a convenient choice for storing and manipulating data.