- REST Assured was created before Jayway's JsonPath
- REST Assured is built in Groovy and thus it was natural to take advantage of its data structures and its query language.
- GPath also works for other data formats such as XML and HTML which means that once you learn GPath you can apply to other types of data in an easy manner
- GPath has historically been more capable than JsonPath (although today I don't think this is much to worry about)
I've wanted to support Jayways JsonPath for a long time but it'll take some effort to do so. Also, as a long term goal, I'd like to refactor REST Assured and get rid of Groovy in the core module. That way you should be able to hook in different "path providers", not just Jayway's JsonPath. So today there's no way to use Jayway's JsonPath. But of course they are easy to combine, for example:
String store = get("/store").asString(); // Rest Assured
// Jayway JsonPath
List<String> authors = JsonPath.read(store, "$.store.book[*].author");
// AssertJ
assertThat(authors).contains("author1").contains("author2);
Contributions of any kind are of course welcome.