Function xplr::lua::util::from_yaml

source ·
pub fn from_yaml<'a>(util: Table<'a>, lua: &Lua) -> Result<Table<'a>>
Expand description

Load YAML (i.e. also JSON) string into Lua value.

Type: function( string ) -> value

Example:

xplr.util.from_yaml([[{foo: bar}]])
-- { foo = "bar" }