Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dervexdev/json2lua

Convert JSON to Lua table
https://github.com/dervexdev/json2lua

json lua parser rust table

Last synced: about 1 month ago
JSON representation

Convert JSON to Lua table

Awesome Lists containing this project

README

        

# json2lua

Convert JSON to Lua table


Version badge
Downloads badge
License badge
Docs badge

## Example:

```rust
use json2lua::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,
// }
```