Calling getAllDecorations() returns internal members like parent ... These members seems to produce circular references while converting the decorations to json. To fix it, I added a method "compactDecorations()" which creates an array of decorations only containing the official members and call them in getAllDecorations() and other decoration-related methods.
Fixed this issue with a generic method instead of a method that works only for decorations. You can find it in PR #96. Thanks a lot for letting me know with this PR!
Calling getAllDecorations() returns internal members like parent ... These members seems to produce circular references while converting the decorations to json. To fix it, I added a method "compactDecorations()" which creates an array of decorations only containing the official members and call them in getAllDecorations() and other decoration-related methods.