Enumerationvalues shall be encoded as a JSON number for the reversible encoding.
For the non-reversible form, Enumerationvalues are encoded a literal with the value appended as a JSON string.
The format of the string literal is:
Where the name is the enumeration literal and the value is the numeric value.
If the literal is not known to the encoder, the numeric value is encoded as a JSON string.