how to parse complex json with jsonpath?
Opened this issue · 0 comments
fengnex commented
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