#451 - avaje-ebeanorm-jackson - com.fasterxml.jackson.core.JsonParseException: Expecting start_array event but got START_OBJECT at

This commit is contained in:
Robin Bygrave committed 2015-11-05 16:38:22 +13:00
1 parent 8d5845b9a2
commit bfa8837e61
1 file changed
+6 -3
@@ -125,9 +125,12 @@ public class DJsonContext implements JsonContext {
List<T> list = new ArrayList<T>();
JsonToken event = src.nextToken();
if (event != JsonToken.START_ARRAY) {
throw new JsonParseException("Expecting start_array event but got " + event, src.getCurrentLocation());
JsonToken currentToken = src.getCurrentToken();
if (currentToken != JsonToken.START_ARRAY) {
JsonToken event = src.nextToken();
if (event != JsonToken.START_ARRAY) {
throw new JsonParseException("Expecting start_array event but got " + event, src.getCurrentLocation());
}
}
do {