# mlua-json
Rust-native JSON support for [mlua](https://crates.io/crates/mlua).
[](LICENSE)
[]()
[]()
## Installing
Add to your Rust project using one of MLua's features: [lua51, lua52, lua53, lua54, luajit, luajit52].
```shell
$ cargo add mlua-json --features luajit
```
## Using
```rust
use mlua::Lua;
let lua = Lua::new();
mlua_json::preload(&lua);
let script = r#"
local json = require('json')
local table = json.decode('{"abc":123,"def":true}')
local s = json.encode(table)
"#;
```
## Testing
```shell
$ make check
```