Similar strategies with the logitsprocesor. It is a more generalized version that's not just constrained to JSON parsing, but any regex. JSONformer/clownfish try to parse the types syntactically.
A regex is a better fit for a different class of problems. You might implement a JSONformer/clownfish with this instead.