I am using gson library to de-serialize my json into my pojo object
and my test is getting failed - when one of the value contains a special character like '&'
how shall I get the required value as it is received.
我得到它解决了我不断变化的 Builder 设置,如下所示:
gson = new GsonBuilder().disableHtmlEscaping().create();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.