private Number readNumber(JsonLexer lexer) throws ParseException { expectCurrentToken(lexer, NUMBER); Number num = (Number) lexer.getValue(); lexer.moveNext(); return new BigDecimal(num.toString()); }
private String readString(JsonLexer lexer) throws ParseException { expectCurrentToken(lexer, STRING); String str = unescape((String) lexer.getValue()); lexer.moveNext(); return str.toString(); }
private Boolean readBoolean(JsonLexer lexer) throws ParseException { expectCurrentToken(lexer, BOOLEAN); Boolean bool = (Boolean) lexer.getValue(); lexer.moveNext(); return bool; }