Merge pull request #31 from outersky/master

Json parser now supports unicode escape sequence
This commit is contained in:
Rob Bygrave committed 2013-06-19 04:06:51 -07:00
commit 7cd71559b6
2 files changed
+13

No files matched your search

@@ -151,6 +151,15 @@ public class ReadBasicJsonContext implements ReadJsonInterface {
case '"':
sb.append('"');
break;
case 'u':
String msg = "EOF reading unicode value";
char c1 = src.nextChar(msg);
char c2 = src.nextChar(msg);
char c3 = src.nextChar(msg);
char c4 = src.nextChar(msg);
char u = (char) Integer.parseInt(""+c1+c2+c3+c4, 16);
sb.append(u);
break;
default:
sb.append('\\');