JSON.PropertiesInUpperCase 추가

master
mjkhan21 1 year ago
parent 0dc90ed6cc
commit c9f8cd9860

@ -8,6 +8,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
@ -203,4 +204,16 @@ public class JSON extends AbstractComponent {
NONE
}
}
/**
* @author mjkhan
*/
public static class PropertiesInUpperCase extends PropertyNamingStrategy.PropertyNamingStrategyBase {
private static final long serialVersionUID = 1L;
@Override
public String translate(String propertyName) {
return propertyName.toUpperCase();
}
}
}
Loading…
Cancel
Save