Skip to main content

state_array

Function state_array 

Source
pub fn state_array(root: &Value, section: &str) -> Option<Vec<Value>>
Expand description

Returns the JSON array for one state section.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::state_array(std::path::Path::new("."), "items");