Skip to main content

json

Function json 

Source
fn json(body: String) -> Response
Expand description

Always 200 with a JSON body, even for an error object: in JSON-RPC the failure is in the payload, and a client that sees a 4xx may never parse far enough to find out what went wrong.