How to export animation with parent/hierarchy/armature?

I’m attempting to see if I can modify an addon which currently exports objects with animation_data into the Lottie format. My goal is to modify the code to support any animation done on curves in Blender. I’d be ok just starting with supporting animation from the parent armature (which is parent type ‘bone’).

Lottie does support parenting, but it doesn’t have armatures. So, I’m thinking it would be best to somehow export animated bezier curves with the deformation and loc/rot/scale applied to the curve itself.

This sounds rather complicated to me just getting started with writing Blender python scripts.

Does anyone have ideas on how I could approach this?

Here’s the code I’m working with