I have a column with the following content:
7. {"resource":"abc"}
8. [{"resource":"def"},{"resource":"ghi"}]
I try to get the content of "resource":
value.parseJson().resource
Works. If I try to get the content of multivalued cells, I can't get it to work. I tried according to https://github.com/OpenRefine/OpenRefine/wiki/GREL-Other-Functions:
forEach(value.parseJson().resource,v,v.resource)
I get a lot of errors, for example:
7. {"resource":"abc"} Error: First argument to forEach is not an array
8. [{"resource":"def"},{"resource":"ghi"}] Error: Object does not have any field, including resource
And I can only get the multivalued cells, but not the single value cells with this one:
forEach(value.parseJson(),v,v.resource)