2022-10-08 21:34:47 +08:00
|
|
|
# lib json.nas
|
|
|
|
# 2021 ValKmjolnir
|
|
|
|
|
2023-12-10 23:55:18 +08:00
|
|
|
var _json = func() {
|
|
|
|
return _json_new();
|
2022-10-08 21:34:47 +08:00
|
|
|
}();
|
2023-01-31 19:39:22 +08:00
|
|
|
|
2023-12-10 23:55:18 +08:00
|
|
|
var _stringify = func(json_object, object) {
|
|
|
|
return _json_stringify(json_object, object);
|
|
|
|
}
|
2023-01-31 19:39:22 +08:00
|
|
|
|
2023-12-10 23:55:18 +08:00
|
|
|
var _parse = func(json_object, input_string) {
|
|
|
|
return _json_parse(json_object, input_string);
|
|
|
|
}
|
2023-01-31 19:39:22 +08:00
|
|
|
|
2023-12-10 23:55:18 +08:00
|
|
|
var _get_error = func(json_object) {
|
|
|
|
return _json_get_error(json_object);
|
|
|
|
}
|
2023-01-31 19:39:22 +08:00
|
|
|
|
2023-12-10 23:55:18 +08:00
|
|
|
var stringify = func(object) {
|
|
|
|
return _stringify(_json, object);
|
2023-11-06 22:18:48 +08:00
|
|
|
}
|
|
|
|
|
2023-12-10 23:55:18 +08:00
|
|
|
var parse = func(input_string) {
|
|
|
|
return _parse(_json, input_string);
|
2023-11-06 22:18:48 +08:00
|
|
|
}
|
|
|
|
|
2023-12-10 23:55:18 +08:00
|
|
|
var get_error = func() {
|
|
|
|
return _get_error(_json);
|
2023-01-31 19:39:22 +08:00
|
|
|
}
|