Last updated 1 year ago
The JSON parser tag can be used to parse JSON that is contained in a string value. This is useful for parsing product attributes that contain JSON values.
<JSONParser dataRef={product.attributes.custom_json_string} item={(object) => ( <div>{object.name}</div> )} />
dataRef: DataLocator - the data-element storing the Generator's configuration
item: anonymous - used to create a collection item