How to get the jsonpath for a field with parenthesis

19 views
Skip to first unread message

Neda

unread,
Nov 21, 2017, 1:09:26 PM11/21/17
to Gatling User Group
Hi all,

My json response looks like 
{
  "data": {
    "table": {
      "agg1": [
        {
          "month(MMDDYY)": "1965-04-01",
          "testKEY1": {
            "sum": "1140301.000000"
          }
        },
        {
          "month(MMDDYY)": "2000-06-01",
          "testKEY1": {
            "sum": "1253437.000000"
          }
        }
      ]
    }
  }
}

and I need to get the values of "month(MMDDYY)" field. $..agg1[*].["month(MMDDYY)"] does not work in gatling (it is working in Jayway) . Could you help me get the right jsonpath expression? Thanks

Neda

unread,
Nov 21, 2017, 1:11:50 PM11/21/17
to Gatling User Group
Just found out the solution :)

$..agg1[*]['month(MMDDYY)']

Stéphane LANDELLE

unread,
Nov 21, 2017, 2:37:35 PM11/21/17
to gat...@googlegroups.com
easy peasy

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages