Why are we doing this instead of making json object with keys?