Hi,
How to use jsonpath to extract value from JSON request body (Note, not the response body).
Say I have a JSON string, not the response body, such as:
val jsonStr = “”"
{"menu": {
"id": "file",
"value": "File",
"popup": {
"menuitem": [
{"value": "New", "onclick": "CreateNewDoc()"},
{"value": "Open", "onclick": "OpenDoc()"},
{"value": "Close", "onclick": "CloseDoc()"}
]
}
}}
"""
How to use jsonpath to extract field "id" to get value "file" in Gatling?
Can I use the build-in Gatling jsonPath, how to use it?
Or is there a way or sample code to use third-party jsonpath library using scala?
Thanks.