JSON.stringify Decoration[]

Hi, What is the correct way to JSON.stringify Decoration, and then to JSON.parse it back to Decoration? Thanks.

The library doesn’t provide a way to serialize decorations. You’ll have to define your own.