parseJsonWithBigInts

function parseJsonWithBigInts(json): unknown;

This function is a replacement for JSON.parse that can handle large unsafe integers by parsing them as BigInts. It transforms every numerical value into a BigInt without loss of precision.

Parameters

ParameterType
jsonstring

Returns

unknown

On this page