Went back to using locales as the highest entity. Improved script to create ready-to-use json output files.