I had spent quite a lot of time reading the docs. I donât know how I was supposed to really find that information myself - even backtracking from your link to a solution that actually worked for me was complex. And while I am an amateur, I have plenty of web, PHP, and Kirby experience: I would gently suggest it is the docs at fault here, and you could (if you want) do a little better at either helping people navigate the complex documentation or being slightly more helpful when they come here for assistance.
For anyone else with this issue:
These fields I am attempting to create in the panel example above are called structures (this is not made clear in the starterkit example they are drawn from) and they are stored as yaml files.
When they are called by the frontend, they appear as hyphen-separated strings, as above
Applying toStructure() to these strings returns an empty array, I donât know why. So the linked docs donât actually help here.
Applying yaml() to the same data results in the desired outcome:
EDIT: Iâm not sure what was different, but I managed to get toStructure() to work, resulting in this scheme, which I think is preferred and allows you to keep using Kirby methods on the resulting data, e.g. to get an image file: