Std.Json.encode
1 declaration
fn
encode: &Std.Json.Json -> StrThis is a callable function.
What it does
A value written as compact text, with no spaces between its parts.
The runtime's jsonEncode writes it: one walk over the value into UTF-8
bytes, each string written as runs between the characters that need an
escape, so the cost is the size of the text and nothing interpreted per
character.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
