Skip to main content

emit_json_or_empty

Function emit_json_or_empty 

Source
pub fn emit_json_or_empty(text: &str) -> String
Expand description

Returns compact JSON text or an empty object for invalid serialized input.

§Parameters

§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("{}");