• Converts a JavaScript Object Notation (JSON) string into an object.

    Parameters

    • text: string

      A valid JSON string.

    • Optionalreviver: ((this: any, key: string, value: any) => any)

      A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.

        • (this, key, value): any
        • Parameters

          • this: any
          • key: string
          • value: any

          Returns any

    Returns any