Skip to content

Commit 8e90c1c

Browse files
committed
x.json2.decoder2: stub module
1 parent 492f657 commit 8e90c1c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

vlib/x/json2/decoder2/stub.v

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module decoder2
2+
3+
import x.json2
4+
5+
@[deprecated: '`decode` has been moved to `x.json2`, use `decode` from `x.json2` instead']
6+
@[deprecated_after: '2025-10-12']
7+
fn decode[T](val string) !T {
8+
return json2.decode[T](val)
9+
}
10+
11+
@[deprecated: '`decode` has been moved to `x.json2`, use `decode` from `x.json2` instead']
12+
@[deprecated_after: '2025-03-18']
13+
fn decode_array[T](src string) !T {
14+
return json2.decode[T](src)
15+
}

0 commit comments

Comments
 (0)