Tiptap and Livewire - Output to Json

I am trying to integrate tiptap editor in my Livewire implementation following this guide:
https://www.tiptap.dev/installation/livewire

So far so good as it works. However, I want to use the output to JSON format and send JSON to server instead of HTML like in the above link.

https://www.tiptap.dev/guide/output#option-1-json

Does anyone knows how to do it/have done it?

Thanks

That was as simple as changing

onUpdate: ({ editor }) => {
         this.content = editor.getHTML()
}

to

onUpdate: ({ editor }) => {
         this.content = editor.getJSON()
}

from here
https://www.tiptap.dev/installation/livewire