Safely work with dates, bigints, and more with this superset of JSON.
...
- 🍱 Reliable serialization and deserialization
- 🔐 Type safety with autocompletion
- 🐾 Negligible runtime footprint
- 💫 Framework agnostic
const input = {
normal: 'string',
timestamp: new Date(),
};
const { json, meta } = serialize(input);
/*
json = {
normal: 'string',
timestamp: "2020-06-20T04:56:50.293Z",
}
meta = {
timestamp: 'Date',
}
*/