Why isn't Shopify accepting my JSON Metafield error?

Topic summary

A user is encountering an error when trying to input JSON data into a Shopify metafield. The provided JSON code appears malformed with reversed text and incorrect syntax structure.

Issue identified:

  • The JSON contains reversed strings (e.g., “eulav” instead of “value”, “retemaiD” instead of “Diameter”)
  • Improper bracket placement and formatting errors
  • Missing or misplaced closing braces

Solution offered:
Another community member provided corrected JSON syntax with proper formatting, though the full corrected code appears truncated in the conversation. The fix involves properly structuring the JSON object with correct key-value pairs for product specifications like “Small Size”, “height”, and “diameter” with “10 cm” values.

The discussion remains focused on resolving the syntax errors to make the metafield data acceptable to Shopify’s system.

Summarized with AI on November 18. AI used: claude-sonnet-4-5-20250929.

Can someone help me why shopify not accepting my JSON?

[
  {
    "name": "Small Size",
    "height": { "title": "Height", "value": "10 cm" },
    "diameter": { "title": "Diameter", "value": "10 cm" }
  }
]

Hello @Kel06

Happy to help you here today.

Try using the below json:

{
    "name": "Small Size",
    "height": { "title": "Height", "value": "10 cm" },
    "diameter": { "title": "Diameter", "value": "10 cm" }
}

Thanks