pub fn estimate_json_bytes(v: &Value) -> u64Expand description
Approximate serialized JSON size of v, in bytes, without allocating.
Strings count their UTF-8 length plus quotes (escapes are ignored), numbers their decimal rendering, containers their brackets, commas and key quotes/colons. Close enough for accounting and budgets.