How to reference a metaobject list inside a Collection metafield

I have a selection of collections and Products. I have some “master” values in SOME COLLECTIONS, that I want to inherit to the products. Everything goes well until one of those values is a “metafield with metaobjects”. I was able to extract this info with an Update Metafield instruction, type List of metaobject references. But somehow the bracket is deleted at the beginning of the array selection. Not sure how to fix this. I believe it is the bracket missing.

Please apologize as I am still learning this code.

Instruction:

{% capture value_item %}
{%- for collections_item in getProductDataForeachitem.collections -%}
{%- for metafields_item in collections_item.metafields -%}
{%- for references_item in metafields_item.references -%}
{{- references_item.Metaobject.id | strip -}},
{%- endfor -%}
{%- endfor -%}
{%- endfor -%}
{% endcapture -%}
[{{value_item | remove_last: “,”}}]

Results:

Got error updating metafield: “Value is invalid JSON: unexpected token at ‘gid://shopify/Metaobject/52042301720,gid://shopify/Metaobject/52042006808,gid://shopify/Metaobject/67042345240,gid://shopify/Metaobject/68046586136]’.” For value: “**[**gid://shopify/Metaobject/52042301720,gid://shopify/Metaobject/52042006808,gid://shopify/Metaobject/67042345240,gid://shopify/Metaobject/68046586136]”, Type: list.metaobject_reference