For the ReversibleEncoding, LocalizedText values shall be encoded as a JSON object with the fields shown in Table H.5.
Table H.5 – JSON Object Definition for a LocalizedText
Name |
Description |
Locale |
The Locale portion of LocalizedText values shall be encoded as a JSON string |
Text |
The Text portion of LocalizedText values shall be encoded as a JSON string. |
For the NonReversibleEncoding, LocalizedText value shall be encoded as a JSON string containing the Text component.
Decoders that support the NonReversibleEncoding use the JSON datatype to detect which encoding is used. A JSON object is the current encoding; a JSON string means it is the NonReversibleEncoding.