0
votes

below is my json response and am trying to parse it using Scala in a Gatling script and the value of x is not returned. Can you see what may be the mistake --

[
  [
    {
      "x": "2018-01-23",
      "y": "test"
    },
    {
      "x": "2018-02-02",
      "y": "test1"
    }
]
]

.check(jsonPath(path="$.[0].['x']").is(expected="2018-10-23")))

The error I get is - preparation crashed:       1 (100.0%)
Jackson failed to parse into a valid AST: c.f.j.c.JsonParseExc...
1

1 Answers

0
votes

This error means the response was not well formed JSON. It could be malformed JSON or not JSON at all (typically HTML). Check logback.xml and lower logging level to check what the response body actually was.