File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -399,14 +399,14 @@ func jsonPath(query, toMatch string) interface{} {
399399 return ""
400400 }
401401
402- //// Jsonpath library converts large int into a string with scientific notion, the following
403- //// reverts that process to avoid mismatching when using the jsonpath result for csv data lookup
404- // floatResult, err := strconv.ParseFloat(result, 64)
405- //// if the string is a float and a whole number
406- // if err == nil && floatResult == float64(int64(floatResult)) {
407- // intResult := int(floatResult)
408- // result = strconv.Itoa(intResult)
409- // }
402+ // Jsonpath library converts large int into a string with scientific notion, the following
403+ // reverts that process to avoid mismatching when using the jsonpath result for csv data lookup
404+ floatResult , err := strconv .ParseFloat (result , 64 )
405+ // if the string is a float and a whole number
406+ if err == nil && floatResult == float64 (int64 (floatResult )) {
407+ intResult := int (floatResult )
408+ result = strconv .Itoa (intResult )
409+ }
410410
411411 // convert to array data if applicable
412412 var data interface {}
You can’t perform that action at this time.
0 commit comments