Pulls nested JSON objects into one level