Skip to main content

add_json_string_or_null

Function add_json_string_or_null 

Source
pub fn add_json_string_or_null(
    object: &mut Map<String, Value>,
    key: &str,
    value: Option<&str>,
) -> bool
Expand description

Adds a nullable string field to an object.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::json_commands::add_json_string_or_null holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::add_json_string_or_null(todo!(), "key", "value");