I like to leave the `to_json` part until the `respond_to` block, to keep it as format-agnostic as possible.