{"id":"json-canonical-serialize","version":"1.0.0","description":"Serialize a JSON value to deterministic compact text with sorted object keys and safe integers only.","supported_operations":["json canonical serialize","canonicalize json","serialize json deterministically"],"unsupported_operations":["serialize non-integer numbers","pretty-print json","jsonc comments","locale-aware key sort","read files","fetch urls"],"semantics":["The output is compact JSON with no insignificant whitespace.","Object keys are sorted by UTF-16 code units and serialized with JSON.stringify escaping.","Array element order is preserved.","Strings use JSON.stringify escaping.","null, true, and false are emitted as those literals.","Numbers must be safe integers and are serialized with String(n), never exponent notation.","Only own enumerable string keys of objects are serialized; nothing is skipped.","Object.create(null) inputs are accepted; prototype-like own keys are ordinary keys.","The canonical UTF-8 byte length must not exceed 1048576."],"limits":{"max_output_bytes":1048576},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["value"],"properties":{"value":{}}},"output_schema":{"type":"object","additionalProperties":false,"required":["json"],"properties":{"json":{"type":"string","maxLength":1048576}}},"examples":[{"input":{"value":{"z":1,"note":"hello \"Ada\"","a":[true,false,null,0],"m":{"b":"x","a":"y"}}},"output":{"json":"{\"a\":[true,false,null,0],\"m\":{\"a\":\"y\",\"b\":\"x\"},\"note\":\"hello \\\"Ada\\\"\",\"z\":1}"}}],"execute_url":"/v1/tools/json-canonical-serialize/versions/1.0.0/execute"}