Skip to content

x.json2.decoder2 #

fn decode #

deprecated: `decode` has been moved to `x.json2`, use `decode` from `x.json2` instead
deprecated_after: 2025-10-12
fn decode[T](val string) !T

decode decodes a JSON string into a specified type.

fn decode_array #

deprecated: `decode_array` has been moved to `x.json2`, use `decode` from `x.json2` instead
deprecated_after: 2025-03-18
fn decode_array[T](src string) !T

decode_array decodes a JSON string into a specified type. This is the same as decode.