Azure / Azure/azure-documentdb-java

JsonSerializable doesn't support Enum

未关闭
#103 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。