You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
在项目重构过程中,发现java投递的mq的消息存在消费时json解析错误的情况,经过排查是fastjson序列化后的[]byte不符合json标准格式。json协议现在是我们用的最多的跨语言编码协议。我认为既然是一种json协议的支持库,如果序列化结果不符合json标准结构,只能本库反序列化是不可接收的。
以下是通过fastjson序列化的不支持标准json的一个例子:
{
"@type": "com.alibaba.fastjson.JSONObject",
"gmtCreate": 1581645198 L,
"lang": "zh"
}
其他语言的json库无法解析以上的序列化结果。
最后 本人主要不是java开发,所以有些问题可能考虑不周,期待和大家讨论。
The text was updated successfully, but these errors were encountered: