Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] JSONPath中, 如果我不确定类型是否能够处理 #1059

Closed
yizems opened this issue Jan 8, 2023 · 2 comments
Closed

[QUESTION] JSONPath中, 如果我不确定类型是否能够处理 #1059

yizems opened this issue Jan 8, 2023 · 2 comments
Labels
enhancement New feature or request fixed question Further information is requested
Milestone

Comments

@yizems
Copy link

yizems commented Jan 8, 2023

请描述您的问题

例如

{
  "a":{
     "b":"xxx"
   }
}
{
  "a":[
      {
       "b":"xxx"
     }
  ]
}

如果我不确定a的类型, 但是我又希望通过$.a.b 将b全部删除, 请问可行吗

@yizems yizems added the question Further information is requested label Jan 8, 2023
@yizems yizems changed the title [QUESTION] JSONPath中, 如果我确定类型是否能够处理 [QUESTION] JSONPath中, 如果我不确定类型是否能够处理 Jan 8, 2023
@wenshao wenshao added the enhancement New feature or request label Jan 8, 2023
@wenshao wenshao added this to the 2.0.23 milestone Jan 8, 2023
@wenshao
Copy link
Member

wenshao commented Jan 8, 2023

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.23-SNAPSHOT/
已经支持,请用2.0.23版本帮忙验证,2.0.23版本预计在1月14日前发布

@wenshao wenshao added the fixed label Jan 8, 2023
@wenshao
Copy link
Member

wenshao commented Jan 14, 2023

https://github.com/alibaba/fastjson2/releases/tag/2.0.23
问题已经修复,请用新版本

@wenshao wenshao closed this as completed Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants