superjson
Safely serialize JavaScript expressions to a superset of JSON
Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more. At Blitz, we have struggled with the limitations of JSON. We often find ourselves working with Date, Map, Set or BigInt, but JSON.stringify doesn't support any of them without going through the hassle of converting manually. Superjson solves these issues by providing a thin wrapper over JSON.stringify and JSON.parse. For cases where you want lower level access to the json and meta data...