Parsing JSON of objects and handling fields