You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

164 lines
3.6 KiB

  1. {
  2. "array": {
  3. "key1": [
  4. 1,
  5. 2,
  6. 3
  7. ],
  8. "key2": [
  9. "red",
  10. "yellow",
  11. "green"
  12. ],
  13. "key3": [
  14. [
  15. 1,
  16. 2
  17. ],
  18. [
  19. 3,
  20. 4,
  21. 5
  22. ]
  23. ],
  24. "key4": [
  25. [
  26. 1,
  27. 2
  28. ],
  29. [
  30. "a",
  31. "b",
  32. "c"
  33. ]
  34. ],
  35. "key5": [
  36. 1,
  37. 2,
  38. 3
  39. ],
  40. "key6": [
  41. 1,
  42. 2
  43. ]
  44. },
  45. "boolean": {
  46. "False": false,
  47. "True": true
  48. },
  49. "datetime": {
  50. "key1": "1979-05-27T07:32:00Z",
  51. "key2": "1979-05-27T00:32:00-07:00",
  52. "key3": "1979-05-27T00:32:00.999999-07:00"
  53. },
  54. "float": {
  55. "both": {
  56. "key": 6.626e-34
  57. },
  58. "exponent": {
  59. "key1": 5e+22,
  60. "key2": 1000000,
  61. "key3": -0.02
  62. },
  63. "fractional": {
  64. "key1": 1,
  65. "key2": 3.1415,
  66. "key3": -0.01
  67. },
  68. "underscores": {
  69. "key1": 9224617.445991227,
  70. "key2": 1e+100
  71. }
  72. },
  73. "fruit": [{
  74. "name": "apple",
  75. "physical": {
  76. "color": "red",
  77. "shape": "round"
  78. },
  79. "variety": [{
  80. "name": "red delicious"
  81. },
  82. {
  83. "name": "granny smith"
  84. }
  85. ]
  86. },
  87. {
  88. "name": "banana",
  89. "variety": [{
  90. "name": "plantain"
  91. }]
  92. }
  93. ],
  94. "integer": {
  95. "key1": 99,
  96. "key2": 42,
  97. "key3": 0,
  98. "key4": -17,
  99. "underscores": {
  100. "key1": 1000,
  101. "key2": 5349221,
  102. "key3": 12345
  103. }
  104. },
  105. "products": [{
  106. "name": "Hammer",
  107. "sku": 738594937
  108. },
  109. {},
  110. {
  111. "color": "gray",
  112. "name": "Nail",
  113. "sku": 284758393
  114. }
  115. ],
  116. "string": {
  117. "basic": {
  118. "basic": "I'm a string. \"You can quote me\". Name\tJosé\nLocation\tSF."
  119. },
  120. "literal": {
  121. "multiline": {
  122. "lines": "The first newline is\ntrimmed in raw strings.\n All other whitespace\n is preserved.\n",
  123. "regex2": "I [dw]on't need \\d{2} apples"
  124. },
  125. "quoted": "Tom \"Dubs\" Preston-Werner",
  126. "regex": "\u003c\\i\\c*\\s*\u003e",
  127. "winpath": "C:\\Users\\nodejs\\templates",
  128. "winpath2": "\\\\ServerX\\admin$\\system32\\"
  129. },
  130. "multiline": {
  131. "continued": {
  132. "key1": "The quick brown fox jumps over the lazy dog.",
  133. "key2": "The quick brown fox jumps over the lazy dog.",
  134. "key3": "The quick brown fox jumps over the lazy dog."
  135. },
  136. "key1": "One\nTwo",
  137. "key2": "One\nTwo",
  138. "key3": "One\nTwo"
  139. }
  140. },
  141. "table": {
  142. "inline": {
  143. "name": {
  144. "first": "Tom",
  145. "last": "Preston-Werner"
  146. },
  147. "point": {
  148. "x": 1,
  149. "y": 2
  150. }
  151. },
  152. "key": "value",
  153. "subtable": {
  154. "key": "another value"
  155. }
  156. },
  157. "x": {
  158. "y": {
  159. "z": {
  160. "w": {}
  161. }
  162. }
  163. }
  164. }