cancel
Showing results for 
Search instead for 
Did you mean: 

Any way currently to parse JSON string within expression?

tstephen
Champ on-the-rise
Champ on-the-rise
Specifically I want to use the multi-instance functionality to do something for each item in a JSON array. I have the JSON array in a process variable 'myJSONList' and would like to specify the multi-instance collection as ${myJSONList} having each object in the array be set as the element variable.

Is there a way to do something like this now? And if not, how would I go about adding it? I'm thinking of adding a new ElResolver to the org.activiti.engine.impl.el.ExpressionManager, is that on the right lines?

Cheers,
Tim
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
We don't have support for json in the expressions. But it certainly would be cool!.
Yes, you are on the right path. The VariableScopeELResolver already could provide some insight there.

If you're stuck somewhere, let us know and we can lend a hand!

krgowtham
Champ in-the-making
Champ in-the-making

Hi JOram Barrez‌,

I would need to parse a JSON array within expression in order to use multi-instance feature. Is this supported now?

Thanks,

Gowtham