PayFanout API reference
    Preparing search index...

    Function safeJson

    • JSON.parse that answers undefined for non-JSON (proxies answer HTML; the raw text still rides errors).

      Parameters

      • text: string

      Returns unknown