json2lua

Crates.iojson2lua
lib.rsjson2lua
version0.1.3
created_at2023-12-24 14:34:59.891836+00
updated_at2025-06-29 15:14:38.656147+00
descriptionConvert JSON to Lua table
homepage
repositoryhttps://github.com/DervexHero/json2lua
max_upload_size
id1079721
size21,123
Dervex (DervexDev)

documentation

README

json2lua

Convert JSON to Lua table

Version badge Downloads badge License badge Docs badge

Example:

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,
// }
Commit count: 7

cargo fmt