2 ms·
> But that's the thing: you might actually expect/want a Map<string,string> Yes, but that's not the semantics of a bare JSON object; if you want the ability to
by dragonwriter 5y ago
> But that's the thing: you might actually expect/want a Map<string,string>
Yes, but that's not the semantics of a bare JSON object; if you want the ability to commubicate that you intend that, then you use a schema language like JSON schema, which lets you say that the JSON map in this element doesn't allow duplicate keys and requires the values to be strings, at which point tools that read the schema language no it is safe to deserialize as Map<string, string>.