Open fengnex opened 1 year ago
value, err := gval.Evaluate($["response-time"]+" "+$["request.method"], map[string]interface{}{ "response-time": 100, "response-time1": 110, "request": { "method": "GET", "path": "/hello/2", } //here causes syntax error: unexpected newline, expecting comma or }, how to fix it? }, jsonpath.Language(), )
$["response-time"]+" "+$["request.method"]
Please check the above code when want to include nested json content, which always leads to the above specified syntax error
value, err := gval.Evaluate(
$["response-time"]+" "+$["request.method"]
, map[string]interface{}{ "response-time": 100, "response-time1": 110, "request": { "method": "GET", "path": "/hello/2", } //here causes syntax error: unexpected newline, expecting comma or }, how to fix it? }, jsonpath.Language(), )Please check the above code when want to include nested json content, which always leads to the above specified syntax error