Skip to main content

json_nullable_string

Function json_nullable_string 

Source
pub fn json_nullable_string(value: Option<&str>) -> String
Expand description

Serializes an optional string as JSON, using the JSON null literal when absent.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::json_commands::json_nullable_string.

§Examples

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