1

I use the fastjson to deal with the JSON. When I was trying to derialize the JSON string to a bean, I got an exception. I debuged into the code and find out there was something wrong with a param when deserializeing. So I wanna ignore it. I used the method parseObject

public static <T> T parseObject(String text, Class<T> class)

I tried the transient but it didn't work.

blackdog
  • 2,007
  • 3
  • 25
  • 43

1 Answers1

0

@JSONField(serialize = false) can fix it

blackdog
  • 2,007
  • 3
  • 25
  • 43