Is it possible to convert arrays of structs to JSON in a short way, as in one function works for all structs so it would just do it in json like for example:
{
“inventory”: {“item”: amount},
“achievements”: {“achievement”:progress}
}
Where inventory and achievements are different structs, and the function would convert those to the desired json with just one array input.
Sounds to me like it wouldn’t be possible, but wont hurt to ask