Shopify Community
How to store json object in the metafield
Retired Boards
Appdev
Metafields
HunkyBill
April 16, 2021, 5:25pm
6
Probably your use of those single quotes. Try using the usual quotes. Always works for me.
show post in topic
Related topics
Topic
Replies
Views
Activity
productCreate mutation with json_string metafield returns invalid JSON error
Metafields
8
154
September 3, 2020
Why am I getting an error when creating a json type metafield?
Shopify Apps
shopify-apps
2
143
January 4, 2024
Would it make sense to store an array of JSON objects in a metafield with type string?
Graphql Basics And Troubleshooting
2
137
January 11, 2022
Why does using 'json' type in Metafield cause an error?
Shopify Apps
migration
3
170
February 29, 2024
Admin API - Metafields error: value must be a single line text string
Graphql Basics And Troubleshooting
1
193
June 27, 2022