Fixing readAndValidateJson()

If param is a JSON file path, reading the JSON. If not a file path, treat it as a JSON string. Parse JSON to validate.