How to migrate index.liquid to index.json for 2.0 compatibility?

Hi All,

I am working on transferring template files from .liquid to .json for 2.0 compatibility using the shopify docs however I cannot find any help on the index.liquid > index.json files. Another site has a rather complex index.json featuring all the homepage sections and their custom elements so I am using this as a base but not sure how to find the custom element id’s etc if that makes any sense. The page has a carousel and featured blocks that I need to get the id’s for so I can build them out in json.

1 Like

Solved!!
The best thing to do is make a blank json file and let shopify add the data when you build the elements in customise after swapping all legacy liquid templates to 2.0 json templates, you can then add each section and shopify will populate the json data for you.