Skip to main content

Examples

You can create JSON objects in one or more dimensions.

Download an example of variant specifications here.

note

If you add JSON objects to a CSV file and use " as the quote character, you must use double quotes, as in this example:

"{""size"": {""heading"": ""Size"", ""columns"": {""display_text"": ""product_size""}}}"

Single dimension

{"size": {"heading": "Size", "columns": {"display_text": "product_size_column_name"}}}

Example of a product with one variant, size

Two dimension

"{""color"":{""heading"":""Color"",""columns"":{""display_text"":""variantcolor""}},""size"":{""heading"":""Size"",""columns"":{""display_text"":""variantsize""}}}"

Example of a product with multiple variants, color, image, and size

Multiple dimensions

{"color": {"heading": "Color", "columns":{"display_text": "color_text_column_name", "color_hex_code": "color_hex_column_name", "order": "color_ordering_column_name"}, "pattern": {"heading": "Pattern", "columns": {"display_text": "pattern_text_column_name", "image_url": "pattern_image_url_column_name"}}}}

Example of a product with two variants, color and size