Closed Eomm closed 1 year ago
Opening this draft to get feedback. Right now this feature works, it needs more testing (CI fails due to the coverage).
The notable code is on the index and serializer-compiler files, the validator is just a copy-paste
index
serializer-compiler
validator
AJV-JTD can be used to serialize the JSON payloads: https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json
I'm not sure if it is good to include this feature in this package, or we should create a new package that:
fast-json-stringify
ajv-JTD
What do you think?
Closes https://github.com/fastify/fastify/issues/3441
I don't see any issue with this.
@Eomm Any performance comparison would be helpful At least here for users could see how performance differs than fast-json-stringify
Must add small benchmarks
Opening this draft to get feedback. Right now this feature works, it needs more testing (CI fails due to the coverage).
The notable code is on the
index
andserializer-compiler
files, thevalidator
is just a copy-pasteAJV-JTD can be used to serialize the JSON payloads: https://ajv.js.org/guide/getting-started.html#parsing-and-serializing-json
I'm not sure if it is good to include this feature in this package, or we should create a new package that:
fast-json-stringify
by defaultajv-JTD
featureWhat do you think?
Closes https://github.com/fastify/fastify/issues/3441