Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ protected void parseObject(boolean small, JsonFormatter formatter)
// checkstyle, please ignore MethodLength for the next line
protected void parseArray(boolean small, JsonFormatter formatter)
throws IOException {
int arrayOffset = this.reader.getPosition();

// Read the header ...
int numElements = readUnsignedIndex(Integer.MAX_VALUE, small, "number of elements in");
int numBytes = readUnsignedIndex(Integer.MAX_VALUE, small, "size of");
Expand Down Expand Up @@ -534,6 +536,9 @@ protected void parseArray(boolean small, JsonFormatter formatter)
}
} else {
// Parse the value ...
this.reader.reset();
this.reader.skip(arrayOffset + entry.index);

parse(entry.type, formatter);
}
}
Expand Down