Skip to main content

load_root_from

Function load_root_from 

Source
pub fn load_root_from(text: &str) -> Option<Value>
Expand description

Loads a JSON root from bounded text.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::load_root_from 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::load_root_from.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::load_root_from("{}");