We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
例:
JSONObject json = new JSONObject(); json.put("attr", Lists.newArrayList("1", "2", "3")); DefaultContext<String, Object> properties = new DefaultContext<String, Object>(); properties.put("json", json); String ex = "json.attr.get(1)"; Object r = runner.execute(ex, properties, null, true, false); System.out.println(r); //是否可以支持下面的操作? // ex = "json.attr[1]"; // r = runner.execute(ex, properties, null, true, false); // System.out.println(r);
The text was updated successfully, but these errors were encountered:
是一个不错的语法糖,虽然不是符合java规范的,后面我们会综合考虑一下,比如map['a'],map[0],array[0]等都统一支持下
Sorry, something went wrong.
No branches or pull requests
例:
The text was updated successfully, but these errors were encountered: