{
"countErrors": 0,
"countWarnings": 0,
"countInfos": 1,
"currentLabelCount": 301,
"totalLabelCount": 1200,
"currentJobCount": 1,
"stateText": "Printing…",
"errors": [],
"timestamp": "2024-03-21T12:46:54.904Z"
}
I've never tried this before with an expression but it seems to work.
if(
jsonGet({value}, "stateText") = "Printing…",
jsonSet({value}, "stateText", "Printing"),
{value}
)
See Types of Tags | Ignition User Manual which may be relevant.
Tips:
- Use https://jsonlint.com to check JSON and to prettify it.
- See Wiki - how to post code on this forum.