-
Type: Improvement
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: V4.0_COS
-
Fix Version/s: V4.01_WD01
-
Component/s: JSON Format
-
Labels:
-
Environment:
Simplified Payload;[Proposed]
-
Proposal:
-
Resolution:
In JSON we currently require primitive types to be written as fragments, i.e.:
"@odata.type":"#Double"
The hash is not really required in this case, and doesn't really make sense as it is not a reference within the metadata document. Note that, in Atom, it is written without the hash, as in:
<metadata:Salary metadata:type="Double">50000</metadata:Salary>
In order not to make a breaking change for JSON we should continue to allow, but not require, the "#" for primitive types.
Perhaps even add to an implementation note for 4.0 that clients should support primitive types without the "#".
There are no Sub-Tasks for this issue.