Movatterモバイル変換


[0]ホーム

URL:


Search

Lib.rs

Parser implementations
#lua#table#json-parser#array#convert-json#json#lua-parser

json2lua

Convert JSON to Lua table

3 unstable releases

0.1.3Jun 29, 2025
0.1.2Dec 24, 2023
0.1.1Dec 24, 2023
0.1.0Dec 24, 2023
0.0.0Dec 24, 2023

#2406 inParser implementations

Download history97/week @ 2025-03-2668/week @ 2025-04-02121/week @ 2025-04-0922/week @ 2025-04-1616/week @ 2025-04-2313/week @ 2025-04-306/week @ 2025-05-0713/week @ 2025-05-2838/week @ 2025-06-18188/week @ 2025-06-2519/week @ 2025-07-02

245 downloads per month

Apache-2.0

8KB
166lines

json2lua

Convert JSON to Lua table

Example:

usejson2lua::parse;let json=r#"{  "string": "json2lua",  "int": 420,  "bool": true,  "null": null}"#;let lua=parse(json).unwrap();// Output:// {//   ["string"] = "json2lua",//   ["int"] = 420,//   ["bool"] = true,//   ["null"] = nil,// }

Made with <3 by Dervex


json2lua

Convert JSON to Lua table

Version badgeDownloads badgeLicense badgeDocs badge

Example:

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

Dependencies

~1.3–2.4MB
~46KSLoC


[8]ページ先頭

©2009-2025 Movatter.jp