Skip to main content

stringify_value

Function stringify_value 

Source
pub fn stringify_value(cx: &mut dyn Context, value: &Value) -> RunResult<String>
Expand description

A xur value as JSON text, as std::json::stringify does: structs and records become objects, maps objects with their keys as strings, lists and tuples arrays, None null. Functions, modules and other non-data values are an error. For hosts and other modules (std::http) that write JSON.