fixes #4246 - add JSONInput formalizer

Adding a formalizer that can take as input either
a json string or path to a json file.