Added JSON parsing to output.