adding way to manually define json

I needed a way to manually define the json used, instead of relying on the filename, so this checks to see if jsonPath is defined, and if not it reverts to using the template filename.