Functional JSON parsing.