Move structured data
Serialize richer JavaScript values and prepare JSON payloads.
Options for this task
devalue
Library / toolA serializer for JavaScript values that go beyond ordinary JSON.
- Good for
- Transferring structured application state across server and client boundaries.
fast-json-stringify
Library / toolA schema-driven JSON serializer.
- Good for
- Serializing known response shapes in performance-sensitive server code.
SuperJSON
Library / toolA serializer that preserves JavaScript values beyond plain JSON types.
- Good for
- Moving dates and other richer values between application layers.
Before you decide
Try a small, realistic example. Check the runtime, accessibility, maintenance, and license requirements for the features you need.