Parsing nested JSON fields to separate fields

See this answer.