Best way to create external alterable configuration file to be read by After Effects and Java
I would look at Templater Rig to see whether this does a fair amount of what you need.
https://aescripts.com/templater/
You can also import JSON files directly into AE without conversion to CSV first:
https://helpx.adobe.com/after-effects/using/data-driven-animations.html