json2lua

Crates.iojson2lua
lib.rsjson2lua
version0.1.2
sourcesrc
created_at2023-12-24 14:34:59.891836
updated_at2023-12-24 21:34:43.584582
descriptionConvert JSON to Lua table
homepage
repositoryhttps://github.com/DervexHero/json2lua
max_upload_size
id1079721
size17,305
Dervex (DervexDev)

documentation

README

json2lua

Convert JSON to Lua table

Version badge Downloads badge License 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: 5

cargo fmt