Dynamic Structs by json

You can’t.

Keys of a struct need to be known at compiletime, you can not add or remove them at runtime.

What you can do though, is to use dotted notation with the return value of Poison.Parse.parse!/2 if you enforce keys to be atoms.