However, one should be able to customize the serialization implementation in order to support custom different formats, using object-to-json and json-to-object.
Currently, one can parse/stringify before and after calling JSON-Patch but it would have better performances to avoid serializing the objects multiple times.
Could you simply extract JSON.parse & JSON.stringify in a service and provide a way to override it?
I perfectly understand that this library just work with JSON objects and won't support Javascript objects such as Date (https://github.com/Starcounter-Jack/JSON-Patch/issues/122 https://github.com/Starcounter-Jack/JSON-Patch/issues/183).
However, one should be able to customize the serialization implementation in order to support custom different formats, using object-to-json and json-to-object.
Currently, one can parse/stringify before and after calling JSON-Patch but it would have better performances to avoid serializing the objects multiple times.
Could you simply extract JSON.parse & JSON.stringify in a service and provide a way to override it?
=>