Exporting character data from struct to JSON/CSV

I’m working on a way to export character data from a struct to a JSON or CSV file, but I’m kinda stuck.

We have character blueprints that derive from a basic character class. This class contains a struct with attributes like health, actions points, you name it. When creating blueprints, we can change those values in the editor to give characters starting values.

Now I know that you can easily export unreal data tables since the editor provides export functions for those, so I want to “connect” the structs from character blueprints to corresponding data tables, which can then be exported.

Deriving our struct from FTableRowBase (like shown here: Data Driven Gameplay Elements | Unreal Engine Documentation) at least makes it to work with data tables but I’d have to create a row for each character manually. I want the changes made to the character blueprint to be taken also to the data table. I thought of creating data tables besides the character blueprints and then just putting a reference to the table in the blueprint, but I can’t use pointers to structs and now I’m kinda out of ideas.

Any suggestions on this would be really much appreciated.

Edit: I could solve it giving the character blueprins a pointer variable for a UDataTable and an FName identifier, so each character has the table and can look up it’s specific content by finding it’s corresponding row using it’s identifier name. This way I still have to manually insert each attributes again, but this will later only be done in the table itself, not in each character blueprint anymore, since they keep a ref to the table anyway.

Not the best solution in terms of usability, I think, since it’d be more convenient to be able to change character stats within it’s own blueprint, but that should not be necessary later, since then it’ll all be up to our artists using their own tool.