Added new optional parameter in case the resultFormatValue is not 'json' but the output is in json format
Added new optional parameter in case the resultFormatValue is not 'json' but the output is in json format