method
Json.encode
Json.encode(value) -> string
Walks a value tree and returns compact JSON text. int nodes become integers, fixed nodes an exact decimal, bool true/false, str a quoted (escaped) string, and lists/objects the usual […]/{…} — object members keep insertion order, so the output is stable and diffable. The inverse is Json.parse; together with Reflect.serialize this is a one-call save.