PillowPillow / ng2-webstorage

Localstorage and sessionstorage manager - Angular service
MIT License
428 stars 91 forks source link

Additional registration of a JSON reviver and replacer function #174

Open BenSawary opened 1 year ago

BenSawary commented 1 year ago

Is your feature request related to a problem? Please describe. Objects that contains Date, Map, ... types are not correctly deserialized. The problem behind is, that Json don't know types like Date etc. After deserialization we get a corrupted object.

Describe the solution you'd like To solve this behavior it would be nice, if we could be register a Json reviver and replacer function.