Modified the response format to be JSON.