title: Failed to parse the JSON document
body: <p>I am getting a &quot;Failed to parse the JSON document&quot; error along with another error: &quot;Caused by: groovy.json.JsonException: Lexing failed on line:&quot; that I can't figure out.</p>
  <p>CODE:</p>
  <pre><code>@Test
  public void givenData() {
      RestAssured.baseURI = &quot;https://maps.googleapis.com&quot;;
  
      Response returnGivenData = given().
      param(&quot;location&quot;, &quot;-33.8670522,151.195736&quot;).
      param(&quot;radius&quot;, &quot;500&quot;).
      param(&quot;key&quot;, &quot;AIzaSyBde6fW-IAx1j-J5TqNOwmvx-_QPHozqRY&quot;).
      when().
      get(&quot;/maps/api/place/nearbysearch/json&quot;).
      then().assertThat().statusCode(200).and().
      contentType(ContentType.JSON).and().
      body(&quot;results[0].name&quot;, equalTo(&quot;Sydney&quot;)).and().
      body(&quot;results[0].place_id&quot;, equalTo(&quot;ChIJP3Sa8ziYEmsRUKgyFmh9AQM&quot;)).and().
      header(&quot;Server&quot;, &quot;pablo&quot;).
      extract().
      response();
      JsonPath responseJson = ReusableMethods.convertRawDataToJson(returnGivenData);
  
      int count = responseJson.get(&quot;results.size()&quot;); //ERROR LINE
      System.out.println(count);
  }
  
  </code></pre>
  <p>ERROR:</p>
  <pre><code>io.restassured.path.json.exception.JsonPathException: Failed to parse the JSON document
      at io.restassured.path.json.JsonPath$ExceptionCatcher.invoke(JsonPath.java:930)
      at io.restassured.path.json.JsonPath$4.doParseWith(JsonPath.java:895)
      at io.restassured.path.json.JsonPath$JsonParser.parseWith(JsonPath.java:975)
      at io.restassured.path.json.JsonPath.get(JsonPath.java:201)
      at Demo.DemoGivenData2.givenData(DemoGivenData2.java:40)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
      at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:127)
  Caused by: groovy.json.JsonException: Lexing failed on line: 1, column: 1, while reading 'i', no possible valid JSON value or punctuation could be recognized.
      at groovy.json.JsonLexer.nextToken(JsonLexer.java:85)
      at groovy.json.JsonLexer$nextToken.call(Unknown Source)
      at io.restassured.internal.path.json.ConfigurableJsonSlurper.parse(ConfigurableJsonSlurper.groovy:97)
      at io.restassured.internal.path.json.ConfigurableJsonSlurper$parse$0.callCurrent(Unknown Source)
      at io.restassured.internal.path.json.ConfigurableJsonSlurper.parseText(ConfigurableJsonSlurper.groovy:83)
      at io.restassured.path.json.JsonPath$4$1.method(JsonPath.java:893)
      at io.restassured.path.json.JsonPath$ExceptionCatcher.invoke(JsonPath.java:928)
      ... 27 more
  </code></pre>