Custom toJSON and fromJSON for a node

Hi,

Is there any way to overwrite toJSON and fromJSON to generate json according to our requirement? Like we can pass toJSON and fromJSON in NodeSpec for a node.

Thanks in advance.

No. But you could create your own, separate JSON serializer/parser if you really want to store documents in a different format.

1 Like