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

数组 取值问题 #19

Closed
xiurierye opened this issue Mar 2, 2017 · 6 comments
Closed

数组 取值问题 #19

xiurierye opened this issue Mar 2, 2017 · 6 comments

Comments

@xiurierye
Copy link

我有如下map 对象
{
"E": {
"F": [
{
"H": 1,
"J": {
"A": 12
}
}
}
想取值 E.F[0].H 语法错误,
请问不支持数组map的嵌套取值吗?

@killme2008
Copy link
Owner

这个应该不支持,也不确定 beanutils 是否支持,如果有此类需求,暂时可以通过自定义函数来实现。

我会调研下。

@xiurierye
Copy link
Author

非常感谢您的回答。

@killme2008
Copy link
Owner

我先开着,应该需要支持下。

@killme2008 killme2008 reopened this Mar 2, 2017
@zuoerlost
Copy link

zuoerlost commented May 17, 2017

我也遇到了相同的需求。。。

需要对数组中的对象进行操作,而不是单单处理数组中的字符串

@killme2008
Copy link
Owner

killme2008 commented May 17, 2017

准备支持下这个特性了,但是引用这种类型的变量需要特殊的语法,类似 #E.F[0].H,前面多一个 # 符号,我晚上可能发布下。

@killme2008
Copy link
Owner

已经发布 3.1.0,maven 同步预计要明后天:

https://github.com/killme2008/aviator/releases/tag/aviator-3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants