Fixed case where json object could have a list of json objects