Added simple check for json input files. Fixes #29