json linting in multiplex mode

Hi, I have implemented my own parser to allow me to put some custom script inside a JSON block. I have multiplexing working but wanted to have syntax highlighting and error checking in the JSON part of the text. I turned on JSON linting but it tries to lint the whole text including my embedded script and so throws errors.

Is there a way to get JSON syntax checking when using multiplexing or do I have to write my own parser for JSON for multiplexing mode.

Yeah, you do. Or just a pre-processor that then feeds the text to a linter.