bugfix: 通过jsonpath修改jsonarray中的值时抛出异常UnsupportedOperationException

This commit is contained in:
machunlin
2015-07-05 21:38:44 +08:00
parent 7f994f32de
commit e583e43988
@@ -1682,6 +1682,16 @@ public class JSONPath implements ObjectSerializer {
return true;
}
if (parent instanceof List) {
for (Object element : (List) parent) {
if (element == null) {
continue;
}
setPropertyValue(element, name, value);
}
return true;
}
ObjectDeserializer derializer = parserConfig.getDeserializer(parent.getClass());
JavaBeanDeserializer beanDerializer = null;