Azure / Azure/azure-documentdb-java
JsonSerializable doesn't support Enum
未关闭
- 主要语言
- Java
- 星标
- 51
- 派生
- 52
- PR 合并指标
- 30 天内没有已合并 PR
描述
Consider an Enum like
`Enum Weekday {
MONDAY, TUESDAY, WEDNESDAY ...
}`
`new JSONObject(this.getMapper().writeValueAsString(value))` will throw JSONException. I know it is a generic exception when instantiate a JSONObject like new JSONObject("WEDNESDAY"), but maybe worthwhile put into consideration how to handle this situation?
Thanks,
Robbie
贡献指南
评估
这个 Issue 还没有评估数据。