Add better JSON format support in response body

Better formatting for JSON responses.