Our great sponsors
-
superjson
Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Solution could be just to add superjson which supports them all and offers recipe/plugins for even more. But Rich seems to prefer his own lib devalue which isn't on a par and which isn't integrated yet. We cannot even choose our own serializer. Related discussion: https://github.com/sveltejs/kit/issues/6008
superjson has a plugin system and also supports ObjectId. https://github.com/blitz-js/superjson/pull/71
Related posts
- Mini site for recommending songs using Svelte & Deno
- Superjson – serialize JavaScript Dates, Maps, Sets to cross service boundaries
- GitHub - blitz-js/superjson: Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more.
- Superjson: Safely serialize JavaScript expressions to a superset of JSON
- Building a blog with Neon serverless database and both NextJS 13 and Sveltekit