1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
{
'_id': ObjectId('5ec72ffe00316be87cab3927'),
'code': Code('function () { return 22; }'),
'binary': BinData(1, '232sa3d323sd232a32sda3s2d3a2s1d23s21d3sa'),
'dbref': DBRef('namespace', ObjectId('5ec72f4200316be87cab3926'), 'db'),
'timestamp': Timestamp(0, 0),
'long': NumberLong(9223372036854775807),
'decimal': NumberDecimal('1000.55'),
'integer': 100,
'maxkey': MaxKey(),
'minkey': MinKey(),
'isodate': ISODate('2012-01-01T00:00:00.000Z'),
'regexp': RegExp('prism(js)?', 'i'),
'string': 'Hello World',
'numberArray': [1, 2, 3],
'stringArray': ['1','2','3'],
'randomKey': null,
'object': { 'a': 1, 'b': 2 },
'max_key2': MaxKey(),
'number': 1234,
'invalid-key': 123,
noQuotesKey: 'value',
}
----------------------------------------------------
[
["punctuation", "{"],
["string-property", "'_id'"],
["operator", ":"],
["builtin", "ObjectId"],
["punctuation", "("],
["string", ["'5ec72ffe00316be87cab3927'"]],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'code'"],
["operator", ":"],
["builtin", "Code"],
["punctuation", "("],
["string", ["'function () { return 22; }'"]],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'binary'"],
["operator", ":"],
["builtin", "BinData"],
["punctuation", "("],
["number", "1"],
["punctuation", ","],
["string", ["'232sa3d323sd232a32sda3s2d3a2s1d23s21d3sa'"]],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'dbref'"],
["operator", ":"],
["builtin", "DBRef"],
["punctuation", "("],
["string", ["'namespace'"]],
["punctuation", ","],
["builtin", "ObjectId"],
["punctuation", "("],
["string", ["'5ec72f4200316be87cab3926'"]],
["punctuation", ")"],
["punctuation", ","],
["string", ["'db'"]],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'timestamp'"],
["operator", ":"],
["builtin", "Timestamp"],
["punctuation", "("],
["number", "0"],
["punctuation", ","],
["number", "0"],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'long'"],
["operator", ":"],
["builtin", "NumberLong"],
["punctuation", "("],
["number", "9223372036854775807"],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'decimal'"],
["operator", ":"],
["builtin", "NumberDecimal"],
["punctuation", "("],
["string", ["'1000.55'"]],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'integer'"],
["operator", ":"],
["number", "100"],
["punctuation", ","],
["string-property", "'maxkey'"],
["operator", ":"],
["builtin", "MaxKey"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'minkey'"],
["operator", ":"],
["builtin", "MinKey"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'isodate'"],
["operator", ":"],
["builtin", "ISODate"],
["punctuation", "("],
["string", ["'2012-01-01T00:00:00.000Z'"]],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'regexp'"],
["operator", ":"],
["builtin", "RegExp"],
["punctuation", "("],
["string", ["'prism(js)?'"]],
["punctuation", ","],
["string", ["'i'"]],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'string'"],
["operator", ":"],
["string", ["'Hello World'"]],
["punctuation", ","],
["string-property", "'numberArray'"],
["operator", ":"],
["punctuation", "["],
["number", "1"],
["punctuation", ","],
["number", "2"],
["punctuation", ","],
["number", "3"],
["punctuation", "]"],
["punctuation", ","],
["string-property", "'stringArray'"],
["operator", ":"],
["punctuation", "["],
["string", ["'1'"]],
["punctuation", ","],
["string", ["'2'"]],
["punctuation", ","],
["string", ["'3'"]],
["punctuation", "]"],
["punctuation", ","],
["string-property", "'randomKey'"],
["operator", ":"],
["keyword", "null"],
["punctuation", ","],
["string-property", "'object'"],
["operator", ":"],
["punctuation", "{"],
["string-property", "'a'"],
["operator", ":"],
["number", "1"],
["punctuation", ","],
["string-property", "'b'"],
["operator", ":"],
["number", "2"],
["punctuation", "}"],
["punctuation", ","],
["string-property", "'max_key2'"],
["operator", ":"],
["builtin", "MaxKey"],
["punctuation", "("],
["punctuation", ")"],
["punctuation", ","],
["string-property", "'number'"],
["operator", ":"],
["number", "1234"],
["punctuation", ","],
["string-property", "'invalid-key'"],
["operator", ":"],
["number", "123"],
["punctuation", ","],
["property", ["noQuotesKey"]],
["operator", ":"],
["string", ["'value'"]],
["punctuation", ","],
["punctuation", "}"]
]
----------------------------------------------------
Common document.