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 in the output, you can use the serialize and deserialize functions.
Features
- Use with Next.js
- Reliable serialization and deserialization
- Type safety with autocompletion
- Negligible runtime footprint
- Framework agnostic
- Perfect fix for Next.js's serialisation limitations in getServerSideProps and getInitialProps
Categories
JSONLicense
MIT LicenseFollow superjson
Other Useful Business Software
Deploy Apps in Seconds with Cloud Run
Cloud Run is the fastest way to deploy containerized apps. Push your code in Go, Python, Node.js, Java, or any language and Cloud Run builds and deploys it automatically. Get fast autoscaling, pay only when your code runs, and skip the infrastructure headaches. Two million requests free per month. And new customers get $300 in free credit.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of superjson!