mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-28 15:27:56 +00:00
Merge pull request #31 from outersky/master
Json parser now supports unicode escape sequence
This commit is contained in:
commit
7cd71559b6
2 files changed
+13
No files matched your search
@@ -67,6 +67,10 @@ public class TestJsonSimple extends BaseTestCase {
|
||||
JsonElement jsonElement = InternalJsonParser.parse(s);
|
||||
Assert.assertNotNull(jsonElement);
|
||||
|
||||
JsonElement e3 = InternalJsonParser.parse("{\"name\":\"\\u60a8\\u597d\"}");
|
||||
|
||||
Assert.assertTrue(e3.evalString("name").length()==2);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user