fastjson 对象属性options 本身是json的字符串 ,将整个对象转成json 时 ,options会增加反斜杠

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

options":"{"A":"x²-3x=4","B":"x-1=0","C":"x+2y=1","D":"x-1=1/x"}"

可不可以 是 options":"{"A":"x²-3x=4","B":"x-1=0","C":"x+2y=1","D":"x-1=1x"}"

siv3szwd

siv3szwd1#

@JSONField(jsonDirect=true)
public String getOptions() { ... }

相关问题