pub fn emit_json_or_empty(text: &str) -> StringExpand description
Returns compact JSON text or an empty object for invalid serialized input.
§Parameters
text: Input consumed bycrate::runtime::json_commands::emit_json_or_empty.
§Returns
Returns the computed value produced by crate::runtime::json_commands::emit_json_or_empty.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::emit_json_or_empty.
§Examples
ⓘ
let _result = pharos_native::runtime::json_commands::emit_json_or_empty("{}");§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.