I'm not sure if my JsonableWrapper thing is the cleanest way to make this work, but it was the best I came up with for wanting to allow for a map of String -> AnythingThatCanBeWrittenToJson. I don't think there's any way to define the Map's value type with a context bound or anything like that.
I'm not sure if my JsonableWrapper thing is the cleanest way to make this work, but it was the best I came up with for wanting to allow for a map of String -> AnythingThatCanBeWrittenToJson. I don't think there's any way to define the Map's value type with a context bound or anything like that.