Azure / Azure/azure-documentdb-java

JsonSerializable doesn't support Enum

Đang mở
#103 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
51
Fork
52
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.