Serialize and Deserialize JSON Map Objects Reliably

We’ve made improvements to the JSON serialization and deserialization process for Map objects. Previously, some Map key values were converted into String values during serialization, resulting in unpredictability and potential data type changes. Now, you can use a supported list of data types as keys in JSON-serialized Maps, and serialization and deserialization function properly.
You can use the following data types as keys in JSON-serialized Map objects.
  • Boolean
  • Date
  • DateTime
  • Decimal
  • Double
  • Enum
  • Id
  • Integer
  • Long
  • String
  • Time