NxPanel - Replacement Firmware for Sonoff NSPanel

Continuing the discussion from NxPanel - Replacement Firmware for Sonoff NSPanel:

@Pentium4, nice work!

I want to use your script in iobroker and struggle at this point:

var event JSON fails, think my object is notin right notation:

Is the following what var str = expects?

{
“page”: {
“format”: 6,
“pid”: 10,
“type”: “refresh”
}
}

Regards
Hanz