}
public static JsonArray getArray(JsonObject object, String field) {
final JsonValue value = object.get(field);
throwExceptionIfNull(value, field);
return value.asArray();
}
public static JsonArray getArray(JsonObject object, String field, JsonArray defaultValue) {
final JsonValue value = object.get(field);
if (value == null) {