added optional convertion of underscores to hyphens in json params and hyphens to underscores in json response