Skip to main content

Module json

Module json 

Source
Expand description

Minimal JSON rendering for the params channel, enough for the generated bindings (flat objects of strings/numbers/bools) without a serde dependency. Hand-written params can use it too, or bring their own serializer.

Structs§

Value
A rendered JSON value (already escaped/formatted).

Functions§

boolean
A JSON boolean value.
float
A JSON number value (non-finite floats have no JSON spelling and render as 0).
int
A JSON integer value.
object
A JSON object from (key, value) fields, in the given order.
string
A JSON string value.