JSON array to GraphQL variable

Hi, I’m struggling with passing a JSON array through to a Shopify GraphQL request.

Example array

{
    "page_of_records": [
        {
            "record": {
                "prefixedShopifyVariantIds": [
                    "gid://shopify/ProductVariant/39828607631446",
                    "gid://shopify/ProductVariant/39828607631447"
                ]
            }
        }
    ]
}

In the example below I have put “' ‘ ‘ “ around the handlebars to get a result in the preview.

Manually entering the below works, but I can’t seem for it to parse {{{jsonSerialize record.prefixedShopifyVariantIds}}}

{
    "ids": [
        "gid://shopify/ProductVariant/39828607631446",
        "gid://shopify/ProductVariant/39828607631447"
    ]
}

Can anyone point me in the right direction?

Use {{{jsonSerialize record.prefixedShopifyVariantIds}}} and then remove the double quotes and single quotes around it.