pub fn remote_value_to_json(v: &Value) -> ValueExpand description
Flatten a BiDi script.RemoteValue into plain JSON so callers see the
same shape CDP’s returnByValue produces: objects become JSON objects
(BiDi ships them as [[key, value], …] pairs), arrays become arrays,
primitives pass through, and non-serialisable values (nodes, functions,
windows) become null.