lucagez / slow-json-stringify

The slowest stringifier in the known universe. Just kidding, it's the fastest (:
https://github.com/lucagez/slow-json-stringify
MIT License
468 stars 17 forks source link

The schema should be (at least partially) JSONSchema compliant #10

Closed anurbol closed 4 years ago

anurbol commented 4 years ago

Hi! https://github.com/fastify/fast-json-stringify and https://github.com/mafintosh/turbo-json-parse both use JSONSchema compatible schemas. I love SJS' performance but I think its schema should be standard-compliant.

tomByrer commented 4 years ago

Could roll your own schema translator?

lucagez commented 4 years ago

Hi guys 👋 Sorry for being silent for so long. @anurbol The API of SJS has been changed to support real JSON types. As you can see from the latest README. It does not follow jsonschema by design as it aims to support the serialization of custom types via serializers