I have some json field named ‘json_field’ and a controlled parameter named ‘param_key’.
I’ve trying to extract the value of the parameter from the json, something like: parseJson(json_field, '$.${param_key}')
or parseJson(json_field, '$.' + '${param_key}')
Also tried concat and others, nothing seems to work, did anyone managed to do something like this?
parseJson function can take a dynamic path if you just use the parameter directly and have the full path (including the $.) in the parameter value.
ie - parseJson({jsonField},${jsonPathParam})
where value of jsonPathParam is $.xyz.abc etc
I have created an internal ticket for dev team to check into why it isn’t accepting a concatenated text as path.
@ArunSanthosh@ErikG
I was about to answer as well.
I’ve had a talk with AWS support and that’s exactly what I was told.
It’s a workaround, but defiantly not a clean solution.
I’ve also requested to address this as a feature request