Skip to main content

emit_json_string

Function emit_json_string 

Source
pub fn emit_json_string(text: &str) -> Option<String>
Expand description

Serializes one string as a JSON string.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::emit_json_string can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::emit_json_string("{}");