it seems strange to dump the more-specific `withFormat` block in favor of writing JSON directly to the output stream. ```groovy deployment as JSON``` effectively does this same thing, but also sets the response headers.