Skip to main content

Module json_value

Module json_value 

Source
Expand description

A dynamic JSON value used for model parameters, tool arguments, and payloads.

Unlike serde_json::Value this keeps integers and floats distinct yet treats them as equal when they represent the same number (Int(2) == Double(2.0)), matching the semantics the rest of the kernel relies on when comparing parameter values. Objects use a BTreeMap so serialization is key-sorted and deterministic.

Enumsยง

JsonValue
A JSON value with integers and floats kept distinct.