Hi @qm3ster,
I have passed this on to the product management board for comment. So sadly I don’t believe there is an out the box solution at the moment. Currently, you could do some clever conditional arguments which check the characteristics of your input before parsing the json.
I believe the language will need some kind of error handling in the long run, be that via a Result type or some kind of catching exceptions, but I see it isn’t possible right now.
Anyway, my data massaging is somewhat beyond the reach of Flux and even Telegraf at the moment, so I will continue to run my own executables.