Function decode

  • Decodes the JSON string as a value.

    const data = json.decode(`{"hello":"world"}`);
    print(data.hello) // -> world

    Type Parameters

    • T = unknown

    Parameters

    • json: string

    Returns T