pub fn json_value_or_literal(value: Option<&Value>, fallback: &str) -> StringExpand description
Serializes a JSON value or returns a validated fallback literal.
§Parameters
value: Input consumed bycrate::runtime::json_commands::json_value_or_literal.fallback: Input consumed bycrate::runtime::json_commands::json_value_or_literal.
§Returns
Returns the computed value produced by crate::runtime::json_commands::json_value_or_literal.
§Examples
ⓘ
let _result = pharos_native::runtime::json_commands::json_value_or_literal("value", todo!());§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.