Skip to main content

emit_object_string_field

Function emit_object_string_field 

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

Returns a JSON object field as text.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::emit_object_string_field("{}", "key");