So I have an obj that looks like this when I log it from the client-side (in browser console):
{
"type": "doc",
"content": [
{
"type": "codeBlock",
"attrs": {
"language": "js"
},
"content": [
{
"type": "text",
"text": "function(){\nconsole.log('test');\n}"
}
]
}
]
}
But when I log it from the server-side (in terminal) it looks like this:
content: {
type: 'doc',
content: [
{
type: 'codeBlock',
attrs: [Function (anonymous)],
content: [
{
type: 'text',
text: "function(){\nconsole.log('test');\n}"
}
]
}
]
}
attrs becomes a function? What could be the problem?