JSON parsing and formatting

Process JSON response and format it