alibaba / alibaba/fastjson2

JSONPath表达式[=],报错

Open
#1,848 1 comment 0 reactions 0 assignees View on GitHub
bug wontfix
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

在1.2.83版本中可以 2.0.40版本不可以

```
Person person = new Person();
person.setId("1");
person.setAge(10);
Object eval = JSONPath.eval(person, "[age=10]");
System.out.println("eval = " + eval);
```

Contributor guide

Open the contributing guide

Research direction

Start with the JSONPath.eval entry point and reproduce the supplied Java snippet in fastjson2 2.0.40, comparing it with 1.2.83. Trace why the [age=10] expression errors in the newer version; done means the expression evaluates successfully as it did in 1.2.83.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.