danknessdra / RateMyProfessors.help

The RateMyProfessor helper to help find the best professors for your courses
https://ratemyprofessors.help
MIT License
2 stars 1 forks source link

json formatting #1

Closed yuuwe-n closed 2 years ago

yuuwe-n commented 2 years ago

idk how we want json formatting, but it seems that json does not care about empty space, the thing i may be worried about is how we want the json entries to be formatted.

should their be a parent?

how it is right now

{
    "course": "DEPARTMENT 21",
    "department": "DEPARTMENT",
    "prof": "FirstName LastName"
}{
    "course": "DEPARTMENT 28",
    "department": "DEPARTMENT",
    "prof": "FirstName LastName"
}

should we have it like this (notice the list). idk if there are benfits to this. we may see while writing the go code

{
    "courses": [
   {
           department: "MATH"
           name: "MATH 01"
           prof: "firstname lastname"
    }
    {
           department: "MATH"
           name: "MATH 01"
           prof: "firstname lastname"
    }
    {
           department: "MATH"
           name: "MATH 01"
           prof: "firstname lastname"
    }]
}