fastjson enum反序列化问题

q35jwt9p  于 2021-11-27  发布在  Java
关注(0)|答案(1)|浏览(406)

用FastJson序列化时配置了EnumAsJavaBean 序列化结果如下
{"id":"1","isAlreadyDead":{"code":"0","value":"否"},"isDeleted":{"code":"0","value":"否"},"messageBody":"1","messageDataType":{"code":"0","desc":"JSON"},"messageId":"1","messageSendTimes":0,"queueName":"TEST","status":{"code":"0","desc":"待确认"}} isAlreadyDead在Java对象中就是一个枚举属性 请问这样的json字符串能用fastjson反序列化回去吗?

相关问题