Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dervexdev/json2lua
- Owner: DervexDev
- License: apache-2.0
- Created: 2023-12-24T14:30:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-01T12:28:35.000Z (11 months ago)
- Last Synced: 2024-08-10T02:52:00.698Z (5 months ago)
- Topics: json, lua, parser, rust, table
- Language: Rust
- Homepage: https://crates.io/crates/json2lua
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# json2lua
Convert JSON to Lua table
## 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,
// }
```