How can I correctly extract metafields values in JSON code?

To add… Shopify’s product query does not allow searching by metafields yet. https://shopify.dev/docs/api/admin-graphql/2023-07/queries/products#argument-products-query

What are you trying to do in your workflow?