Character encoding for Status Request
I have the following regEx for status extraction:
`"statusPattern": "{ SynchLock\\",\\n\\t\\t\\t\\t\\t\\"status\\":\\t\\"on: true, SynchLock\\",\\n\\t\\t\\t\\t\\t\\"status\\":\\t\\"of: false }"`

The Body response for the status ON response from a HikConnect request is:
`{   "data": "{\n\t\"OutputSearch\":\t{\n\t\t\"searchID\":\t\"a141UtBqIUUAVow4u4l5ay1GeqZZnJL\",\n\t\t\"responseStatusStrg\":\t\"OK\",\n\t\t\"numOfMatches\":\t2,\n\t\t\"totalMatches\":\t2,\n\t\t\"OutputList\":\t[{\n\t\t\t\t\"Output\":\t{\n\t\t\t\t\t\"id\":\t0,\n\t\t\t\t\t\"name\":\t\"SynchLock\",\n\t\t\t\t\t\"status\":\t\"on\",\n\t\t\t\t\t\"duration\":\t4,\n\t\t\t\t\t\"durationConstOutputEnable\":\ttrue\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\t\"Output\":\t{\n\t\t\t\t\t\"id\":\t1,\n\t\t\t\t\t\"name\":\t\"COM2\",\n\t\t\t\t\t\"status\":\t\"off\",\n\t\t\t\t\t\"duration\":\t1,\n\t\t\t\t\t\"durationConstOutputEnable\":\tfalse\n\t\t\t\t}\n\t\t\t}]\n\t}\n}",   "meta": {     "code": 200,     "message": "操作成功",     "moreInfo": null   } }`

This basically pulls the status of COM1 and COM2 ports on a Hikvision indoor station using the Hik-Connect api.

However, I am not able to save the JSON config file in plugin. The error is "Config contains invalid JSON"
This seems to have something to do with character encoding.
I've tested regex expression on regex101.com

Any suggestions.