Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用fastjson来处理JSON. 当我试图将JSON字符串反序列化为 bean 时,我遇到了一个异常。我调试了代码,发现反序列化时参数有问题。所以我想忽略它。我用的方法parseObject
JSON
parseObject
public static <T> T parseObject(String text, Class<T> class)
我试过了,transient但没有用。
transient
@JSONField(serialize = false)可以修复它
@JSONField(serialize = false)