Arize Phoenix TS
    Preparing search index...
    • Safely parse a JSON string

      Parameters

      • str: string

        The string to parse

      Returns { json: any; parseError?: undefined } | { json: null; parseError: unknown }

      An object containing both the parsed JSON and the error if there was one