use isJsonArray for testing response type
Merge pull request #1 from jsnelling/new-java-features

use isJsonArray for testing response type