Skip to main content

emit_json_line

Function emit_json_line 

Source
pub fn emit_json_line(value: &Value) -> Option<String>
Expand description

Emits one compact JSON value followed by a newline.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::emit_json_line("value");