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

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow superjson

superjson Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of superjson!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript JSON Software

Registered

2023-10-10