Select JSON pattern in Telegraf

Hello, i’ve just started to play with the TICK stack. I’m interested in storing values coming from several JSON strings. There are 3 types of different incoming JSON, and each of them need a different procedure to extract the data i need. I was thinking to use a Telegraf script using regex, with 3 different if statements. I read the docs about regex processor (, but i’m not sure if it’s possible to do that. Basically i’m looking for a method to match the JSON with the regex, with a true/false output. Do you think it’s possible?