CRMScript: struct toJson/fromJson should support all basic types

Status: Solved

Description
CRMScript struct has 4 methods for serializing/deserializing: toJson(), toJsonString(), fromXMLNode() and fromJsonString(). These methods should work with all basic types, which are: Integer, String, Bool, Float, Date, Time, DateTime, Byte, TimeSpan. JSON by default supports String, Number, Boolean. The others will be supported like this:
  • Date: converted to/from string with format "YYYY-MM-DD"
  • DateTime: converted to/from string with format "YYYY-MM-DDTHH:MI:SS"
  • Time: converted to/from string with format "HH:MI:SS"
  • Byte: converted to/from number.
  • TimeSpan: converted to/from number (seconds)

Details
Issue id 28896
Registered 23 May 2022
Last modified 2 Aug 2022
Severity
Area Service
Status Solved
Target release CRM Online 10.1.4
Released date 14 Jun 2022
Type Feature