mirror of
https://github.com/vlang/v.git
synced 2025-08-04 10:17:22 -04:00
9 lines
247 B
V
9 lines
247 B
V
module decoder2
|
|
|
|
// decode_array is a generic function that decodes a JSON string into the array target type.
|
|
@[deprecated: 'use `decode` instead']
|
|
@[deprecated_after: '2025-03-18']
|
|
pub fn decode_array[T](src string) !T {
|
|
return decode[T](src)
|
|
}
|