Skip to main content

remote_value_to_json

Function remote_value_to_json 

Source
pub fn remote_value_to_json(v: &Value) -> Value
Expand 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.