Thank you for your response.
I have already tried this code but the data is not properly formated.
I want the proper solution without adding more code.
I know this is a pretty old post and I am fairly new to liquid for developers who come along later here is how you access your JSON Metafields. simplest method is to access it with {% assign my_json_obj = product.metafields.custom.data.value %} and then you can access it directly {{my_json_obj.name}}
Yes, but in this example, how do you access the ID field in the “Custom data” array? I’ve been trying to solve similar issue for almost a day now. I’d think you should be able to access the attribute by using {{my_json_obj[“Custom data”][0].id}} but when rendering in the shop it renders nothing.