Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
module decoder2
import x.json2
// decode decodes a JSON string into a specified type.
@[deprecated: '`decode` has been moved to `x.json2`, use `decode` from `x.json2` instead']
@[deprecated_after: '2025-10-12']
pub fn decode[T](val string) !T {
return json2.decode[T](val)!
}
// decode_array decodes a JSON string into a specified type. This is the same as decode.
@[deprecated: '`decode_array` has been moved to `x.json2`, use `decode` from `x.json2` instead']
@[deprecated_after: '2025-03-18']
pub fn decode_array[T](src string) !T {
return json2.decode[T](src)!
}