Skip to main content

arguments_as_json

Function arguments_as_json 

Source
pub fn arguments_as_json(arguments: &[u8]) -> Result<Value, String>
Expand description

Decode CBOR arguments into the shape a schema is written against.

A decode failure is itself invalid arguments: the guest could not have read them either, and saying so here beats letting it trap on the far side.