JS Utils Kit
    Preparing search index...

    Function parseJson

    • Parse a JSON string into a typed value.

      Type Parameters

      • T = unknown

        Expected return type of the parsed JSON.

      Parameters

      • v: string

        JSON string to parse

      Returns T

      Parsed value cast to type T.

      This function does not handle errors. It will throw if the input is invalid JSON.