3 unstable releases
0.1.3 | Jun 29, 2025 |
---|---|
0.1.2 | Dec 24, 2023 |
0.1.1 | |
0.1.0 | |
0.0.0 | Dec 24, 2023 |
#2406 inParser implementations
245 downloads per month
8KB
166lines
json2lua
Convert JSON to Lua table
Example:
usejson2lua::parse;let json=r#"{ "string": "json2lua", "int": 420, "bool": true, "null": null}"#;let lua=parse(json).unwrap();// Output:// {// ["string"] = "json2lua",// ["int"] = 420,// ["bool"] = true,// ["null"] = nil,// }
Made with <3 by Dervex
json2lua
Convert JSON to Lua table
Example:
usejson2lua::parse;let json=r#"{ "string": "abc", "int": 123, "bool": true, "null": null}"#;let lua=parse(json).unwrap();// Output:// {// ["string"] = "abc",// ["int"] = 123,// ["bool"] = true,// ["null"] = nil,// }
Dependencies
~1.3–2.4MB
~46KSLoC