Skip to main content

encode_json_string_literal

Function encode_json_string_literal 

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

Serializes one JSON string using the canonical escaping policy.

§Parameters

§Returns

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

§Examples

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