Map key should be JSONified, just like the map value
Brought to you by:
charliehubbard
We have a Map<Object,Object> where both key and value are application specific beans. When this map is serialized, key is put into JSON string by simply calling its toString() method, against what looks more natural. Introducing this behaviour would not cause problem to existing behaviour as existing users would be using standard Java classes as key.
This is technically NOT valid JSON. Unfortuantely, the key on a JSON object MUST be a string. This will have to be rejected because it wouldn't conform to the spec.