@@ -0,0 +1,970 @@
+/*%0A * Copyright 1999-2004 Alibaba.com All right reserved. This software is the%0A * confidential and proprietary information of Alibaba.com (%22Confidential%0A * Information%22). You shall not disclose such Confidential Information and shall%0A * use it only in accordance with the terms of the license agreement you entered%0A * into with Alibaba.com.%0A */%0Apackage com.alibaba.json.bvt.bug;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * %E7%B1%BBTest.java%E7%9A%84%E5%AE%9E%E7%8E%B0%E6%8F%8F%E8%BF%B0%EF%BC%9ATODO %E7%B1%BB%E5%AE%9E%E7%8E%B0%E6%8F%8F%E8%BF%B0 %0A * @author jieyu.ljy 2016%E5%B9%B47%E6%9C%8822%E6%97%A5 %E4%B8%8B%E5%8D%8812:39:17%0A */%0Apublic class Issue798_1 extends TestCase %7B%0A    %0A    public void test_for_issue() throws Exception %7B%0A        String str = %22%3Cp%3E%E4%B8%BB%E8%A6%81%E5%AD%A6%E6%A0%A1%EF%BC%9A%E5%AF%86%E6%AD%87%E6%A0%B9%E5%A4%A7%E5%AD%A6 %E5%AE%89%E5%A8%9C%E5%A0%A1%E5%88%86%E6%A0%A1%E3%80%81%E4%B8%9C%E5%AF%86%E8%A5%BF%E6%A0%B9%E5%A4%A7%E5%AD%A6%E3%80%81 %E5%85%8B%E8%8E%B1%E5%88%A9%E5%AD%A6%E9%99%A2%7F%E3%80%81%E5%BA%B7%E8%80%83%E8%BF%AA%E4%BA%9A%E5%AD%A6%E9%99%A2 %7F%E3%80%81%E7%93%A6%E4%BB%80%E7%89%B9%E6%B4%9B%E7%A4%BE%E5%8C%BA%E5%AD%A6%E9%99%A2%7F%3C/p%3E%22;%0A        String json = JSON.toJSONString(str);%0A        assertEquals(%22%5C%22%3Cp%3E%E4%B8%BB%E8%A6%81%E5%AD%A6%E6%A0%A1%EF%BC%9A%E5%AF%86%E6%AD%87%E6%A0%B9%E5%A4%A7%E5%AD%A6 %E5%AE%89%E5%A8%9C%E5%A0%A1%E5%88%86%E6%A0%A1%E3%80%81%E4%B8%9C%E5%AF%86%E8%A5%BF%E6%A0%B9%E5%A4%A7%E5%AD%A6%E3%80%81 %E5%85%8B%E8%8E%B1%E5%88%A9%E5%AD%A6%E9%99%A2%5C%5Cu007F%E3%80%81%E5%BA%B7%E8%80%83%E8%BF%AA%E4%BA%9A%E5%AD%A6%E9%99%A2 %5C%5Cu007F%E3%80%81%E7%93%A6%E4%BB%80%E7%89%B9%E6%B4%9B%E7%A4%BE%E5%8C%BA%E5%AD%A6%E9%99%A2%5C%5Cu007F%3C/p%3E%5C%22%22, json);%0A%0A        String parsedStr = (String) JSON.parse(json);%0A        assertEquals(str, parsedStr);%0A    %7D%0A%7D%0A

add testcase for issue #798