Method for student to convert it into a json dumpable object