JSON Exception Causes: Exception in thread "main" groovy.json.JsonException: Lexing failed on line: 1, column: 1, while reading 'c', no possible valid JSON value or punctuation could be recognized
Exception Message:
Exception in thread "main" groovy.json.JsonException: Lexing failed on line: 1, column: 1, while reading 'c', no possible valid JSON value or punctuation could be recognized.
at groovy.json.JsonLexer.nextToken(JsonLexer.java:82)
at groovy.json.JsonSlurper.parse(JsonSlurper.java:73)
at groovy.json.JsonSlurper.parseText(JsonSlurper.java:59)
at com.jayway.restassured.path.json.JsonPath.(JsonPath.java:114)
Probable Root Cause:
Remove toString() from response object.
Exception in thread "main" groovy.json.JsonException: Lexing failed on line: 1, column: 1, while reading 'c', no possible valid JSON value or punctuation could be recognized.
at groovy.json.JsonLexer.nextToken(JsonLexer.java:82)
at groovy.json.JsonSlurper.parse(JsonSlurper.java:73)
at groovy.json.JsonSlurper.parseText(JsonSlurper.java:59)
at com.jayway.restassured.path.json.JsonPath.
Probable Root Cause:
Remove toString() from response object.
Comments
Post a Comment
Your Comments are more valuable to improve. Please go ahead