JSON dry Factory
create an JSON
instance, and registered isolated serialization/deserialization handlers for custom classes.
Importantly, it is possible that a Class is registered with multiple JSON-dry instances. Will not affect each other.
This is very important. For example, during process communication, different modules may need to register a specific serialization deserialization scheme for the Error object. Use this library to ensure that this Error class can serve multiple modules at the same time.
DEMO
;;;console.logjson;;console.log'-----------------------';console.logobj;