FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
03-02-2022 03:00 PM
Hi,
does the JSON parser of the CtrlX support any comments?
I have quite a long list to register in the diagnostics and it would be nice to put some comments in it.
I know, there is no official standard, but seems some parsers accept comments...
Thanks,
Venzi
Solved! Go to Solution.
03-02-2022 05:35 PM
Dear Venzi,
the related developer is back on monday but some answers before:
as you already mentioned comments are not json standard so we did not consider and test them + also did not add some in the example or in our files used by the system apps. Although it's not/will not be officially supported, you may try it...
Another solution maybe would be to add some keys/tags the parser might ignore (also not tried yet).
If there are still some topics, tell us and we gonna ask the developer on monday
jochen
03-07-2022 08:49 AM
Hello Venzi,
as Jochen said, it is possible to add some keys the JSON parser ignores. For instance you can add a key like "comment":
{
"mainDiagnostics": {
"0E0A0001": {
"comment": "My first main diagnostic",
"text": "Successfully finished boot process",
"version": 1,
"detailedDiagnostics": {
"00000001": {
"comment": "My first detailed diagnostic",
"text": "Finished boot process without errors",
"version": 1
}
}
}
}
}
Best regards
Martin