提交 f164d851 编写于 作者: 高铁

1.2.66

上级 1bdc9993
......@@ -1293,5 +1293,5 @@ public abstract class JSON implements JSONStreamAware, JSONAware {
return null;
}
public final static String VERSION = "1.2.63";
public final static String VERSION = "1.2.66";
}
......@@ -292,7 +292,18 @@ public class MapDeserializer implements ObjectDeserializer {
lexer.nextToken(keyDeserializer.getFastMatchToken());
}
Object key = keyDeserializer.deserialze(parser, keyType, null);
Object key;
if (lexer.token() == JSONToken.LITERAL_STRING
&& keyDeserializer instanceof JavaBeanDeserializer
) {
String keyStrValue = lexer.stringVal();
lexer.nextToken();
DefaultJSONParser keyParser = new DefaultJSONParser(keyStrValue, parser.getConfig(), parser.getLexer().getFeatures());
keyParser.setDateFormat(parser.getDateFomartPattern());
key = keyDeserializer.deserialze(keyParser, keyType, null);
} else {
key = keyDeserializer.deserialze(parser, keyType, null);
}
if (lexer.token() != JSONToken.COLON) {
throw new JSONException("syntax error, expect :, actual " + lexer.token());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册