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.contains()不支持中文key? #1988

@Mr-LiuDC

Description

@Mr-LiuDC

fastjson版本1.2.33

在使用fastjson判断json字符串某个节点是否存在时,JSONPath.contains()似乎不支持中文key,或者需要做特殊设置?
感谢。

$.product.features.规格 ,这种方式会报错,错误如下:

com.alibaba.fastjson.JSONPathException: illeal jsonpath syntax. $.product.features.规格

$.product.features.specification ,这种方式就没问题。

@wenshao

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions