making json object for list of grades