@fastify/fast-json-stringify-compiler
Build and manage the fast-json-stringify
instances for the fastify framework.
This package is responsible for compiling the application's response
JSON schemas into optimized functions to speed up the response time.
Versions
@fastify/fast-json-stringify-compiler | fast-json-stringify | Supported fastify |
---|
v1.x | v3.x | ^3.x |
v2.x | v3.x | ^4.x |
v3.x | v4.x | ^4.x |
fast-json-stringify Configuration
The fast-json-stringify
configuration is the default one. You can check it the default settings in the fast-json-stringify
option documentation.
You can also override the default configuration by passing the serializerOpts
configuration to the Fastify instance.
Usage
This module is already used as default by Fastify.
If you need to provide to your server instance a different version, refer to the official doc.
How it works
This module provide a factory function to produce Serializer Compilers functions.
License
Licensed under MIT.