在前端我用
JSON.stringfy({comment: "1. It's better to use standard abbreviation for Minutes and Seconds, the “ “Mn” “Sc” is hard to understand"})
在后端:
Comment comment = new Gson().fromJson(value, Comment.class);
得到:
com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 213 path $.comment
符号问题:
使用其他字符串可以正常工作