Perform escaping of values for case when JSON is passed as argument for API parameters