Skip to main content

payload_first_string

Function payload_first_string 

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

Returns the first string value from a payload object or array.

§Parameters

§Returns

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

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::payload_first_string.

§Examples

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