Skip to content

v0.5.0

Compare
Choose a tag to compare
@davidecaroselli davidecaroselli released this 28 Apr 08:57
· 9 commits to main since this release

Highlights

This version introduces the models option in the Jsonthis constructor to automatically add a toJSON() method to the specified classes. Jsonthis models are now compatible with Javascript's JSON.stringify() method.

Features

  • Add support for JSON.stringify() compliant classes in Jsonthis constructor with models option (#8) [eec2912]
  • Add "allowOverride" option to Jsonthis.registerGlobalSerializer() (#7) [e922c9c]
  • Add maxDepth option to JsonthisOptions and ToJsonOptions to limit depth of traversal (#6) [fcb0882]
  • Add contextual serialization test cases [395dc71]