https://github.com/streamich/json-schema-serializer
Fast JSON.stringify with schema
https://github.com/streamich/json-schema-serializer
Last synced: 11 months ago
JSON representation
Fast JSON.stringify with schema
- Host: GitHub
- URL: https://github.com/streamich/json-schema-serializer
- Owner: streamich
- License: mit
- Created: 2020-10-23T08:38:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:19:04.000Z (over 2 years ago)
- Last Synced: 2025-08-09T09:14:13.707Z (11 months ago)
- Language: TypeScript
- Size: 140 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# json-schema-serializer
Plain JS object to JSON serializer give a predefined rigid schema.
See `/benchmarks` folder for docs.
## Benchmarks
```
node benchmarks/block.js
json-schema-serializer x 9,142,251 ops/sec ±0.96% (91 runs sampled)
json-schema-serializer (2) x 892,604 ops/sec ±0.53% (92 runs sampled)
JSON.stringify x 531,140 ops/sec ±0.76% (92 runs sampled)
Fastest is json-schema-serializer
```
## License
[MIT © Vadim Dalecky](LICENSE).