v2 / vlib / x / json2 / decoder_deprecated.v
8 lines · 7 sloc · 225 bytes · 3ffc951cf555dc4818309a507ccb9d0da4de748f
Raw
1module json2
2
3// Decodes a JSON string into an `Any` type. Returns an option.
4@[deprecated: 'use `decode[json2.Any]` instead']
5@[deprecated_after: '2025-10-10']
6pub fn raw_decode(src string) !Any {
7 return decode[Any](src)
8}
9