swangkkb / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Improvement Suggestion- New method for JsonPath Class to return JsonDocument (as a String) #254

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
String str = response.getBody().jsonPath().getString(“some.path”);
with(str).get(“more.sub.path”); // Getting Exception as Failed to parse the 
JSON document

What is the expected output? What do you see instead?
It would be good to have an additional method that will return a part of the 
response body as JSONDocument (String) itself based on the path.
The sub/new response can be used again for additional JsonPath processing

What version of the product are you using? On what operating system?
Windows 7, com.jayway.restassured 1.8.1 for rest-assured, json-path and xml-path

Please provide any additional information below.

Original issue reported on code.google.com by anver.op...@gmail.com on 22 Aug 2013 at 10:26

GoogleCodeExporter commented 9 years ago
Good idea

Original comment by johan.ha...@gmail.com on 9 Oct 2013 at 5:08

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 22 Jan 2014 at 10:02