@@ -30,21 +30,18 @@ class Obj;
3030
3131enum Options : uint32_t // Parse options
3232{
33- optUniqueMembers = 1 << 0 , // Member names must be unique within the object.
34- // On duplicates throw ErrSyntax.
35- // If not set, duplicates are accepted, but only
36- // the first value can be accessed by name, while other
37- // values can be accessed only by index.
38-
39- optTrailingComma = 1 << 1 , // One comma allowed after the last array element or object member.
40- // Example: { "a": [1, 2, ], "b": 42, }
41-
42- optEmptyFraction = 1 << 2 , // Allow floating point numbers with no digits after decimal point.
43- // Example: [0., -1., 2.e10]
44-
45- optLineCommentC = 1 << 3 , // C style single line comment: //
46-
47- optHex = 1 << 6 , // Allow integers in hex format like: 0x1A, 0X2b
33+ optUniqueMembers = 1 << 0 , // * Member names must be unique within the object.
34+ // On duplicates throw ErrSyntax.
35+ // If not set, duplicates are accepted, but only
36+ // the first value can be accessed by name, while other
37+ // values can be accessed only by index.
38+ optTrailingComma = 1 << 1 , // * One comma allowed after the last array element or object member.
39+ // Example: { "a": [1, 2, ], "b": 42, }
40+ optEmptyFraction = 1 << 2 , // * Allow floating point numbers with no digits after decimal point.
41+ // Example: [0., -1., 2.e10]
42+ optLineCommentC = 1 << 3 , // * C style single line comment: //
43+ optHex = 1 << 6 , // * Allow integers in hex format like: 0x1A, 0X2b
44+ optIdentifiers = 1 << 7 , // * Allow object member names as C identifiers without quotes: {foo: "bar"}
4845
4946 optStandard = 0 , // Conforms to JSON standard, no extra features are allowed.
5047 optDefault = optUniqueMembers | optTrailingComma | optEmptyFraction | optLineCommentC,
0 commit comments