mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-29 06:06:50 +08:00
bugfix: 通过jsonpath修改jsonarray中的值时抛出异常UnsupportedOperationException
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user