Use class-transformer for json deserialization
juherr opened this issue · comments
Julien Herr commented
Is there an existing issue that is already proposing this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe it
Instead of a plain json type, I'd like to have an object instance from the http response.
Describe the solution you'd like
Just integrate plainToInstance
before returning the response observable.
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
The usecase is everywhere you want logic into classes.
Kamil Mysliwiec commented
Thanks for your suggestion!
There are no plans to implement it in the foreseeable future.
If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.