pub fn encode_json_string_literal(value: &str) -> Option<String>Expand description
Serializes one JSON string using the canonical escaping policy.
§Parameters
value: Input consumed bycrate::runtime::json_commands::encode_json_string_literal.
§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");§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.