In the following (partial)JSON response:
{
"costPrices": {
"3226186": [
{
"fromDate": 1420066800000,
"toDate": null,
"product": {
I'm trying to access the value of fromDate like this:
body("costPrices.3226186[0].fromDate", equalTo(1420066800000L))
But when it comes to the number in the path expression it fails, is there some way around this?
java.lang.IllegalArgumentException: Invalid JSON expression: Script1.groovy: 1: unexpected token: 3226186 @ line 1, column 40.