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" }
}
]
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:
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.
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