Movatterモバイル変換


[0]ホーム

URL:


Search

Lib.rs

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

json2lua

Convert JSON to Lua table

2 unstable releases

0.1.2Dec 24, 2023
0.1.1Dec 24, 2023
0.1.0Dec 24, 2023
0.0.0Dec 24, 2023

#2599 inParser implementations

32 downloads per month

Apache-2.0

7KB
136lines

json2lua

Convert JSON to Lua table

Version badgeDownloads badgeLicense 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,// }

lib.rs:

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

Dependencies

~1.1–1.9MB
~34KSLoC


[8]ページ先頭

©2009-2025 Movatter.jp