// Write extra warnings, some of which may be from the serialization process
Map<UUID, String> codexWarnings = context.getWarnings();
Map<String, String> warnings = entity.getExtraWarnings();
if (!codexWarnings.isEmpty() || !warnings.isEmpty()) {
json.name("warnings");
json.beginObject();
for (Map.Entry<UUID, String> entry : codexWarnings.entrySet()) {
json.name(entry.getKey().toString()).value(entry.getValue());
}
for (Map.Entry<String, String> entry : warnings.entrySet()) {
json.name(entry.getKey()).value(entry.getValue());