Setting headers for JSON response