Rec. ITU-T X.697 (02/2021) Information technology – ASN.1 encoding rules: Specification of JavaScript Object Notation Encoding Rules (JER)
Summary
History
FOREWORD
CONTENTS
1 Scope
2 Normative references
     2.1 Identical Recommendations | International Standards
     2.2 Additional references
3 Definitions
     3.1 Specification of basic notation
     3.2 Information object specification
     3.3 Constraint specification
     3.4 Parameterization of ASN.1 specification
     3.5 Basic Encoding Rules (BER)
     3.6 Packed Encoding Rules (PER)
     3.7 Additional definitions
4 Abbreviations
5 Encodings specified by this Recommendation | International Standard
6 Conformance
7 General provisions
     7.1 Use of the type notation
     7.2 Constraints
     7.3 Type and value model used for encoding
     7.4 Types to be encoded
     7.5 Encoding instructions
     7.6 Production of a complete JER encoding
8 Notation, lexical items and keywords used in JER encoding instructions
9 Specifying JER encoding instructions
10 Assigning a JER encoding instruction using a type prefix
11 Assigning a JER encoding instruction using a JER encoding control section
12 Identification of the targets for a JER encoding instruction
     12.1 General rules
     12.2 Types defined in the module
     12.3 Built-in types
     12.4 Types imported from another module
13 Multiple assignment of JER encoding instructions
     13.1 Order in which multiple assignments are considered
     13.2 Effect of assigning a negating encoding instruction
     13.3 Multiple assignment of JER encoding instructions of the same category
14 The ARRAY encoding instruction
     14.1 General
     14.2 Restrictions
15 The BASE64 encoding instruction
     15.1 General
     15.2 Restrictions
16 The NAME encoding instruction
     16.1 General
     16.2 Restrictions
17 The OBJECT encoding instruction
     17.1 General
     17.2 Restrictions
18 The TEXT encoding instruction
     18.1 General
     18.2 Restrictions
19 The UNWRAPPED encoding instruction
     19.1 General
     19.2 Restrictions
20 Encoding of boolean values
21 Encoding of integer values
22 Encoding of enumerated values
23 Encoding of real values
     23.1 General
     23.2 Encoding of the special real values
     23.3 Encoding as a JSON number
     23.4 Encoding as a JSON object
24 Encoding of bitstring values
     24.1 General
     24.2 Encoding of bitstring types with a fixed size
     24.3 Encoding of bitstring types with a variable size
     24.4 Alternative encoding of bitstring types with a JER-visible contents constraint
25 Encoding of octetstring values
     25.1 General
     25.2 Encoding of an octetstring value as a JSON string containing a Base64 encoding
     25.3 Encoding of an octetstring value as a JSON string containing a hexadecimal encoding
     25.4 Alternative encoding of an octetstring type with a JER-visible contents constraint
26 Encoding of the null value
27 Encoding of sequence values
     27.1 General
     27.2 Array-based encoding
     27.3 Object-based encoding
28 Encoding of sequence-of values
29 Encoding of set values
30 Encoding of set-of values
     30.1 General
     30.2 Array-based encoding
     30.3 Object-based encoding
31 Encoding of choice values
     31.1 General
     31.2 Unwrapped encoding
     31.3 Wrapped encoding
32 Encoding of object identifier values
33 Encoding of relative object identifier values
34 Encoding of values of the internationalized resource reference type
35 Encoding of values of the relative internationalized resource reference type
36 Encoding of values of the embedded-pdv type
37 Encoding of values of the external type
38 Encoding of values of the restricted character string types
39 Encoding of values of the unrestricted character string type
40 Encoding of values of the time types
41 Encoding of open type values
42 Object identifier values referencing the encoding rules
Annex A  Examples of JER encodings
     A.1 ASN.1 description of the record structure
     A.2 ASN.1 description of a record value
     A.3 Example JER representation of this record value
     A.4 Additional examples of JER encodings
Annex B  Examples of JER encoding instructions and their effect on the encodings
     B.1 ASN.1 description of the record structure
     B.2 ASN.1 description of a record value
     B.3 JER representation of this record value
     B.4 Additional examples of JER encodings
     B.5 Examples of JER encodings of choice types
<\pre>