@Override public boolean serialize(JsonContext jsonContext, String value) { JsonValueContext jsonValueContext = jsonContext.peekValueContext(); String propertyName = jsonValueContext.getPropertyName(); if (propertyName != null && propertyName.equals("name")) { value = value.toUpperCase(); } jsonContext.writeString(value); return true; } }