Skip to main content

json_parser

Function json_parser 

Source
pub fn json_parser() -> impl Fn(&Lua, &str) -> Result<Value> + Send + Sync
Expand description

JSON -> Lua Table parser.

Parses with serde_json and converts to a Lua Table via LuaSerdeExt::to_value. Returns ResolveError::AssetParse on parse failure.