Is there any way to save an array or dictionary directly into/with a krita document?

This one?

I’m sure @Grum999 will be able to explain it.