Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

JSONPath remove 方法不支持数组中的布尔表达式 #2791

Closed
@cn-src

Description

@cn-src

无法使用数组布尔表达式删除数据
例如:

JSONPath.remove(jsonObject, "$.dependencies.values[?(@.name=='Demo')]");
java.lang.UnsupportedOperationException: null
	at com.alibaba.fastjson.JSONPath.remove(JSONPath.java:357) ~[fastjson-1.2.61.jar:na]
	at com.alibaba.fastjson.JSONPath.remove(JSONPath.java:503) ~[fastjson-1.2.61.jar:na]

Activity

added this to the 1.2.62 milestone on Oct 3, 2019
added a commit that references this issue on Feb 24, 2025
0d1ba1b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @wenshao@cn-src

        Issue actions

          JSONPath remove 方法不支持数组中的布尔表达式 · Issue #2791 · alibaba/fastjson