RFC7159 7159

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +61 -0
  3. data/.rspec +4 -0
  4. data/.yardopts +2 -0
  5. data/Gemfile +46 -0
  6. data/LICENSE.txt +40 -0
  7. data/README.txt +899 -0
  8. data/RFC7159 +899 -0
  9. data/RFC7159.gemspec +85 -0
  10. data/Rakefile +82 -0
  11. data/lib/RFC7159.rb +80 -0
  12. data/lib/RFC7159/array.rb +134 -0
  13. data/lib/RFC7159/dumper.rb +231 -0
  14. data/lib/RFC7159/false.rb +79 -0
  15. data/lib/RFC7159/null.rb +79 -0
  16. data/lib/RFC7159/number.rb +149 -0
  17. data/lib/RFC7159/object.rb +140 -0
  18. data/lib/RFC7159/parser.ry +267 -0
  19. data/lib/RFC7159/string.rb +221 -0
  20. data/lib/RFC7159/true.rb +79 -0
  21. data/lib/RFC7159/value.rb +96 -0
  22. data/lib/RFC7159/version.rb +48 -0
  23. data/spec/RFC7159_spec.rb +275 -0
  24. data/spec/acceptance/README.txt +66 -0
  25. data/spec/acceptance/invalid/0001-ws/0001-verical-tab.txt +1 -0
  26. data/spec/acceptance/invalid/0001-ws/0002-null.txt +0 -0
  27. data/spec/acceptance/invalid/0001-ws/0003-space-in-number-1.txt +1 -0
  28. data/spec/acceptance/invalid/0001-ws/0004-space-in-number-2.txt +1 -0
  29. data/spec/acceptance/invalid/0001-ws/0005-space-in-number-3.txt +1 -0
  30. data/spec/acceptance/invalid/0001-ws/0006-space-in-number-4.txt +1 -0
  31. data/spec/acceptance/invalid/0001-ws/0007-space-in-number-5.txt +1 -0
  32. data/spec/acceptance/invalid/0001-ws/0008-space-in-number-6.txt +1 -0
  33. data/spec/acceptance/invalid/0001-ws/0009-space-in-literal.txt +1 -0
  34. data/spec/acceptance/invalid/0001-ws/0010-Unicode-LINE_SEPARATOR.txt +1 -0
  35. data/spec/acceptance/invalid/0002-comments/0001-C-style.txt +1 -0
  36. data/spec/acceptance/invalid/0002-comments/0002-C-plusplus-style.txt +2 -0
  37. data/spec/acceptance/invalid/0002-comments/0003-sh-style.txt +2 -0
  38. data/spec/acceptance/invalid/0002-comments/0004-python-docstring.txt +3 -0
  39. data/spec/acceptance/invalid/0002-comments/0005-SQL-style.txt +2 -0
  40. data/spec/acceptance/invalid/0002-comments/0006-BASIC-style.txt +2 -0
  41. data/spec/acceptance/invalid/0003-literals/0001-FALSE.txt +1 -0
  42. data/spec/acceptance/invalid/0003-literals/0002-NULL.txt +1 -0
  43. data/spec/acceptance/invalid/0003-literals/0003-TRUE.txt +1 -0
  44. data/spec/acceptance/invalid/0003-literals/0004-NUL.txt +1 -0
  45. data/spec/acceptance/invalid/0003-literals/0005-nil.txt +1 -0
  46. data/spec/acceptance/invalid/0003-literals/0006-undef.txt +1 -0
  47. data/spec/acceptance/invalid/0003-literals/0007-modifier.txt +1 -0
  48. data/spec/acceptance/invalid/0003-literals/0008-undefined.txt +1 -0
  49. data/spec/acceptance/invalid/0004-numbers/0001-omit-zero.txt +1 -0
  50. data/spec/acceptance/invalid/0004-numbers/0002-minus-dot.txt +1 -0
  51. data/spec/acceptance/invalid/0004-numbers/0003-missing-frac.txt +1 -0
  52. data/spec/acceptance/invalid/0004-numbers/0004-missing-exp.txt +1 -0
  53. data/spec/acceptance/invalid/0004-numbers/0005-octal.txt +1 -0
  54. data/spec/acceptance/invalid/0004-numbers/0006-hexadecimal.txt +1 -0
  55. data/spec/acceptance/invalid/0004-numbers/0007-comma.txt +1 -0
  56. data/spec/acceptance/invalid/0004-numbers/0008-perl-underscore.txt +1 -0
  57. data/spec/acceptance/invalid/0004-numbers/0009-NaN.txt +1 -0
  58. data/spec/acceptance/invalid/0004-numbers/0010-Inf.txt +1 -0
  59. data/spec/acceptance/invalid/0004-numbers/0011-Infinity.txt +1 -0
  60. data/spec/acceptance/invalid/0005-strings/0000-NUL.txt +0 -0
  61. data/spec/acceptance/invalid/0005-strings/0001-not-terminated.txt +1 -0
  62. data/spec/acceptance/invalid/0005-strings/0002-single-quote.txt +1 -0
  63. data/spec/acceptance/invalid/0005-strings/0003-back-quote.txt +1 -0
  64. data/spec/acceptance/invalid/0005-strings/0004-carriage-return.txt +1 -0
  65. data/spec/acceptance/invalid/0005-strings/0005-line-feed.txt +2 -0
  66. data/spec/acceptance/invalid/0005-strings/0006-unknown-escape-a.txt +1 -0
  67. data/spec/acceptance/invalid/0005-strings/0007-unknown-escape-perl-style.txt +1 -0
  68. data/spec/acceptance/invalid/0005-strings/0008-unknown-escape-C-style.txt +1 -0
  69. data/spec/acceptance/invalid/0005-strings/0009-unknown-escape-ruby-style.txt +1 -0
  70. data/spec/acceptance/invalid/0005-strings/0010-escape-too-short.txt +1 -0
  71. data/spec/acceptance/invalid/0005-strings/0011-C-string-concat.txt +1 -0
  72. data/spec/acceptance/invalid/0005-strings/0012-perl-string-concat.txt +1 -0
  73. data/spec/acceptance/invalid/0005-strings/0013-Java-string-concat.txt +1 -0
  74. data/spec/acceptance/invalid/0006-encodings/0001-CESU-8.txt +1 -0
  75. data/spec/acceptance/invalid/0006-encodings/0002-Windows-31J.txt +1 -0
  76. data/spec/acceptance/invalid/0006-encodings/0003-EBCDIC.txt +1 -0
  77. data/spec/acceptance/invalid/0006-encodings/0004-overlong-utf8.txt +1 -0
  78. data/spec/acceptance/invalid/0007-arrays/0001-lacks-open.txt +1 -0
  79. data/spec/acceptance/invalid/0007-arrays/0002-lacks-close.txt +1 -0
  80. data/spec/acceptance/invalid/0007-arrays/0003-interleaving-parens.txt +1 -0
  81. data/spec/acceptance/invalid/0007-arrays/0004-dangling-comma.txt +1 -0
  82. data/spec/acceptance/invalid/0007-arrays/0005-missing-comma.txt +1 -0
  83. data/spec/acceptance/invalid/0007-arrays/0006-colon-instead-of-comma.txt +1 -0
  84. data/spec/acceptance/invalid/0008-hashes/0001-key-missing.txt +1 -0
  85. data/spec/acceptance/invalid/0008-hashes/0002-value-missing.txt +1 -0
  86. data/spec/acceptance/invalid/0008-hashes/0003-true-key.txt +1 -0
  87. data/spec/acceptance/invalid/0008-hashes/0004-false-key.txt +1 -0
  88. data/spec/acceptance/invalid/0008-hashes/0005-null-key.txt +1 -0
  89. data/spec/acceptance/invalid/0008-hashes/0006-numeric-key.txt +1 -0
  90. data/spec/acceptance/invalid/0008-hashes/0007-array-key.txt +1 -0
  91. data/spec/acceptance/invalid/0008-hashes/0008-hash-key.txt +1 -0
  92. data/spec/acceptance/invalid/0008-hashes/0009-key-not-escaped.txt +4 -0
  93. data/spec/acceptance/invalid/0009-javascriptisms/0001-JSONP.txt +1 -0
  94. data/spec/acceptance/invalid/0009-javascriptisms/0002-new-Array.txt +3 -0
  95. data/spec/acceptance/invalid/0009-javascriptisms/0003-new-Date.txt +1 -0
  96. data/spec/acceptance/invalid/0009-javascriptisms/0004-new-Error.txt +1 -0
  97. data/spec/acceptance/invalid/0009-javascriptisms/0005-Math.txt +1 -0
  98. data/spec/acceptance/invalid/0009-javascriptisms/0006-regular-expression.txt +1 -0
  99. data/spec/acceptance/invalid/0009-javascriptisms/0007-function.txt +7 -0
  100. data/spec/acceptance/invalid/0009-javascriptisms/0008-this.txt +1 -0
  101. data/spec/acceptance/invalid/0009-javascriptisms/0009-plusplus.txt +3 -0
  102. data/spec/acceptance/invalid/0009-javascriptisms/0010-ternary-operator.txt +1 -0
  103. data/spec/acceptance/valid/0001-ws/0001-space.json +1 -0
  104. data/spec/acceptance/valid/0001-ws/0002-tab.json +1 -0
  105. data/spec/acceptance/valid/0001-ws/0003-lf.json +1 -0
  106. data/spec/acceptance/valid/0001-ws/0004-cr.json +1 -0
  107. data/spec/acceptance/valid/0001-ws/0005-before.json +1 -0
  108. data/spec/acceptance/valid/0001-ws/0006-after.json +1 -0
  109. data/spec/acceptance/valid/0001-ws/0007-around-comma.json +3 -0
  110. data/spec/acceptance/valid/0001-ws/0008-around-colon.json +3 -0
  111. data/spec/acceptance/valid/0002-bare-values/0001-false.json +1 -0
  112. data/spec/acceptance/valid/0002-bare-values/0002-null.json +1 -0
  113. data/spec/acceptance/valid/0002-bare-values/0003-true.json +1 -0
  114. data/spec/acceptance/valid/0002-bare-values/0004-number.json +1 -0
  115. data/spec/acceptance/valid/0002-bare-values/0005-string.json +1 -0
  116. data/spec/acceptance/valid/0003-literals/0001-false.json +1 -0
  117. data/spec/acceptance/valid/0003-literals/0002-null.json +1 -0
  118. data/spec/acceptance/valid/0003-literals/0003-true.json +1 -0
  119. data/spec/acceptance/valid/0004-numbers/0000-zero.json +1 -0
  120. data/spec/acceptance/valid/0004-numbers/0001-one.json +1 -0
  121. data/spec/acceptance/valid/0004-numbers/0002-two.json +1 -0
  122. data/spec/acceptance/valid/0004-numbers/0003-three.json +1 -0
  123. data/spec/acceptance/valid/0004-numbers/0004-four.json +1 -0
  124. data/spec/acceptance/valid/0004-numbers/0005-five.json +1 -0
  125. data/spec/acceptance/valid/0004-numbers/0006-six.json +1 -0
  126. data/spec/acceptance/valid/0004-numbers/0007-seven.json +1 -0
  127. data/spec/acceptance/valid/0004-numbers/0008-eight.json +1 -0
  128. data/spec/acceptance/valid/0004-numbers/0009-nine.json +1 -0
  129. data/spec/acceptance/valid/0004-numbers/0010-ten.json +1 -0
  130. data/spec/acceptance/valid/0004-numbers/0011-minus.json +1 -0
  131. data/spec/acceptance/valid/0004-numbers/0012-fraction.json +1 -0
  132. data/spec/acceptance/valid/0004-numbers/0013-exponent.json +1 -0
  133. data/spec/acceptance/valid/0004-numbers/0014-exponent-minus.json +1 -0
  134. data/spec/acceptance/valid/0004-numbers/0015-exponent-plus.json +1 -0
  135. data/spec/acceptance/valid/0004-numbers/0016-complex.json +1 -0
  136. data/spec/acceptance/valid/0004-numbers/0017-DBL_MAX.json +1 -0
  137. data/spec/acceptance/valid/0004-numbers/0018-DBL_MIN.json +1 -0
  138. data/spec/acceptance/valid/0004-numbers/0019-subnormal-number.json +1 -0
  139. data/spec/acceptance/valid/0004-numbers/0020-1E400.json +1 -0
  140. data/spec/acceptance/valid/0004-numbers/0021-pi.json +1 -0
  141. data/spec/acceptance/valid/0004-numbers/0022-UINT32_MAX.json +1 -0
  142. data/spec/acceptance/valid/0004-numbers/0023-UINT64_MAX.json +1 -0
  143. data/spec/acceptance/valid/0004-numbers/0024-INT64_MIN.json +1 -0
  144. data/spec/acceptance/valid/0004-numbers/0025-high-resolution-zero.json +1 -0
  145. data/spec/acceptance/valid/0005-strings/0001-empty.json +1 -0
  146. data/spec/acceptance/valid/0005-strings/0002-basic-latin.json +1 -0
  147. data/spec/acceptance/valid/0005-strings/0003-escapes.json +1 -0
  148. data/spec/acceptance/valid/0005-strings/0004-raw-unicode.json +1 -0
  149. data/spec/acceptance/valid/0005-strings/0005-escaped-unicode.json +1 -0
  150. data/spec/acceptance/valid/0005-strings/0006-escaped-NUL.json +1 -0
  151. data/spec/acceptance/valid/0005-strings/0007-escaped-invalid-unicode-still-valid-as-json.json +1 -0
  152. data/spec/acceptance/valid/0005-strings/0008-ruby-json-gem-cant-handle-this.json +1 -0
  153. data/spec/acceptance/valid/0005-strings/0009-unescaped-invalid-javascript-still-valid-as-json.json +1 -0
  154. data/spec/acceptance/valid/0006-m17n/0001-genesis.json +6 -0
  155. data/spec/acceptance/valid/0006-m17n/0002-heart-sutra.json +5 -0
  156. data/spec/acceptance/valid/0006-m17n/0003-escaped-valid-surrogate-pair.json +1 -0
  157. data/spec/acceptance/valid/0006-m17n/0004-unescaped-valid-supplementary-multilingual-plane.json +1 -0
  158. data/spec/acceptance/valid/0007-arrays/0000-empty.json +1 -0
  159. data/spec/acceptance/valid/0007-arrays/0001-one-element.json +1 -0
  160. data/spec/acceptance/valid/0007-arrays/0002-multiple-elements.json +33 -0
  161. data/spec/acceptance/valid/0007-arrays/0003-various-types.json +1 -0
  162. data/spec/acceptance/valid/0007-arrays/0004-nested.json +17 -0
  163. data/spec/acceptance/valid/0008-hashes/0000-empty.json +1 -0
  164. data/spec/acceptance/valid/0008-hashes/0001-onekey.json +1 -0
  165. data/spec/acceptance/valid/0008-hashes/0002-many-keys.json +5 -0
  166. data/spec/acceptance/valid/0008-hashes/0003-empty-key.json +3 -0
  167. data/spec/acceptance/valid/0008-hashes/0004-true-value.json +3 -0
  168. data/spec/acceptance/valid/0008-hashes/0005-false-value.json +3 -0
  169. data/spec/acceptance/valid/0008-hashes/0006-null-value.json +3 -0
  170. data/spec/acceptance/valid/0008-hashes/0007-string-value.json +3 -0
  171. data/spec/acceptance/valid/0008-hashes/0008-numeric-value.json +3 -0
  172. data/spec/acceptance/valid/0008-hashes/0009-array-value.json +8 -0
  173. data/spec/acceptance/valid/0008-hashes/0010-hash-value.json +20 -0
  174. data/spec/acceptance/valid/0008-hashes/0011-duplicate-key-in-different-representations.json +4 -0
  175. data/spec/acceptance/valid/0008-hashes/0011-duplicate-key.json +4 -0
  176. data/spec/spec_helper.rb +54 -0
  177. metadata +520 -0
@@ -0,0 +1 @@
1
+ [-9223372036854775808]
@@ -0,0 +1 @@
1
+ [-0.000000000000e-000000000000]
@@ -0,0 +1 @@
1
+ [" !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"]
@@ -0,0 +1 @@
1
+ ["\"\\\/\b\f\n\r\t"]
@@ -0,0 +1 @@
1
+ ["See http://timelessrepo.com/json-isnt-a-javascript-subset for what this ->
<- is"]
@@ -0,0 +1,6 @@
1
+ {
2
+ "נוסח המסורה" : "בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ.",
3
+ "Εβδομήκοντα": "Ἐν ἀρχῇ ἐποίησεν ὁ Θεὸς τὸν οὐρανὸν καὶ τὴν γῆν.",
4
+ "Vulgata" : "In principio creavit Deus cælum et terram.",
5
+ "King James" : "In the beginning God created the heaven and the earth."
6
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "संस्कृतम्" : "गते गते पारगते पारसंगते बोधि स्वाहा",
3
+ "漢字" : "揭諦揭諦 波羅揭諦 波羅僧揭諦 菩提薩婆訶",
4
+ "དབུ་ཅན་" : "ག༌ཏེ༌ག༌ཏེ༌པཱ༌ར༌ག༌ཏེ༌པཱ༌ར༌སཾ༌ག༌ཏེ༌བོ༌དྷི༌སྭཱ༌ཧཱ།"
5
+ }
@@ -0,0 +1 @@
1
+ ["\uD803\uDC0B\uD803\uDC03\uD803\uDC20\uD803\uDC0F\uD803\uDC00\u0020\uD803\uDC34\uD803\uDC0D\uD803\uDC23"]
@@ -0,0 +1,33 @@
1
+ [
2
+ "1 In principio creavit Deus cælum et terram.",
3
+ "2 Terra autem erat inanis et vacua, et tenebræ erant super faciem abyssi : et spiritus Dei ferebatur super aquas.",
4
+ "3 Dixitque Deus : Fiat lux. Et facta est lux.",
5
+ "4 Et vidit Deus lucem quod esset bona : et divisit lucem a tenebris.",
6
+ "5 Appellavitque lucem Diem, et tenebras Noctem : factumque est vespere et mane, dies unus.",
7
+ "6 Dixit quoque Deus : Fiat firmamentum in medio aquarum : et dividat aquas ab aquis.",
8
+ "7 Et fecit Deus firmamentum, divisitque aquas, quæ erant sub firmamento, ab his, quæ erant super firmamentum. Et factum est ita.",
9
+ "8 Vocavitque Deus firmamentum, Cælum : et factum est vespere et mane, dies secundus.",
10
+ "9 Dixit vero Deus : Congregentur aquæ, quæ sub cælo sunt, in locum unum : et appareat arida. Et factum est ita.",
11
+ "10 Et vocavit Deus aridam Terram, congregationesque aquarum appellavit Maria. Et vidit Deus quod esset bonum.",
12
+ "11 Et ait : Germinet terra herbam virentem, et facientem semen, et lignum pomiferum faciens fructum juxta genus suum, cujus semen in semetipso sit super terram. Et factum est ita.",
13
+ "12 Et protulit terra herbam virentem, et facientem semen juxta genus suum, lignumque faciens fructum, et habens unumquodque sementem secundum speciem suam. Et vidit Deus quod esset bonum.",
14
+ "13 Et factum est vespere et mane, dies tertius.",
15
+ "14 Dixit autem Deus : Fiant luminaria in firmamento cæli, et dividant diem ac noctem, et sint in signa et tempora, et dies et annos :",
16
+ "15 ut luceant in firmamento cæli, et illuminent terram. Et factum est ita.",
17
+ "16 Fecitque Deus duo luminaria magna : luminare majus, ut præesset diei : et luminare minus, ut præesset nocti : et stellas.",
18
+ "17 Et posuit eas in firmamento cæli, ut lucerent super terram,",
19
+ "18 et præessent diei ac nocti, et dividerent lucem ac tenebras. Et vidit Deus quod esset bonum.",
20
+ "19 Et factum est vespere et mane, dies quartus.",
21
+ "20 Dixit etiam Deus : Producant aquæ reptile animæ viventis, et volatile super terram sub firmamento cæli.",
22
+ "21 Creavitque Deus cete grandia, et omnem animam viventem atque motabilem, quam produxerant aquæ in species suas, et omne volatile secundum genus suum. Et vidit Deus quod esset bonum.",
23
+ "22 Benedixitque eis, dicens : Crescite, et multiplicamini, et replete aquas maris : avesque multiplicentur super terram.",
24
+ "23 Et factum est vespere et mane, dies quintus.",
25
+ "24 Dixit quoque Deus : Producat terra animam viventem in genere suo, jumenta, et reptilia, et bestias terræ secundum species suas. Factumque est ita.",
26
+ "25 Et fecit Deus bestias terræ juxta species suas, et jumenta, et omne reptile terræ in genere suo. Et vidit Deus quod esset bonum,",
27
+ "26 et ait : Faciamus hominem ad imaginem et similitudinem nostram : et præsit piscibus maris, et volatilibus cæli, et bestiis, universæque terræ, omnique reptili, quod movetur in terra.",
28
+ "27 Et creavit Deus hominem ad imaginem suam : ad imaginem Dei creavit illum, masculum et feminam creavit eos.",
29
+ "28 Benedixitque illis Deus, et ait : Crescite et multiplicamini, et replete terram, et subjicite eam, et dominamini piscibus maris, et volatilibus cæli, et universis animantibus, quæ moventur super terram.",
30
+ "29 Dixitque Deus : Ecce dedi vobis omnem herbam afferentem semen super terram, et universa ligna quæ habent in semetipsis sementem generis sui, ut sint vobis in escam :",
31
+ "30 et cunctis animantibus terræ, omnique volucri cæli, et universis quæ moventur in terra, et in quibus est anima vivens, ut habeant ad vescendum. Et factum est ita.",
32
+ "31 Viditque Deus cuncta quæ fecerat, et erant valde bona. Et factum est vespere et mane, dies sextus."
33
+ ]
@@ -0,0 +1 @@
1
+ [null, false, 0, 0.0, "", "0", [], {}]
@@ -0,0 +1,17 @@
1
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
2
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
3
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
4
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
5
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
6
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
7
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
8
+ [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
9
+ "To Iterate Is Human, To Recurse Divine" , "-- L Peter Deutsch"
10
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
11
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
12
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
13
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
14
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
15
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
16
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
17
+ ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
@@ -0,0 +1 @@
1
+ {"the qestion": "to be, or not to be"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "Ein Gespenst geht um in Europa" : "das Gespenst des Kommunismus.",
3
+ "Un spectre hante l’Europe" : "le spectre du communisme.",
4
+ "Призрак бродит по Европе" : "призрак коммунизма."
5
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "" : "色即是空"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "truthy": true
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "falsy": false
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "pi": 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327886593615338182796823030195203530185296899577362259941389124972177528347913151557485724245415069595082953311686172785588907509838175463746493931925506040092770167113900984882401285836160356370766010471018194295559619894676783744944825537977472684710404753464620804668425906949129331367702898915210475216205696602405803815019351125338243003558764024749647326391419927260426992279678235478163600934172164121992458631503028618297455570674983850549458858692699569092721079750930295532116534498720275596023648066549911988183479775356636980742654252786255181841757467289097777279380008164706001614524919217321721477235014144197356854816136115735255213347574184946843852332390739414333454776241686251898356948556209921922218427255025425688767179049460165346680498862723279178608578438382796797668145410095388378636095068006422512520511739298489608412848862694560424196528502221066118630674427862203919494504712371378696095636437191728746776465757396241389086583264599581339047802759009946576407895126946839835259570982582262052248940772671947826848260147699090264013639443745530506820349625245174939965143142980919065925093722169646151570985838741059788595977297549893016175392846813826868386894277415599185592524595395943104997252468084598727364469584865383673622262609912460805124388439045124413654976278079771569143599770012961608944169486855584840635342207222582848864815845602850601684273945226746767889525213852254995466672782398645659611635488623057745649803559363456817432411251507606947945109659609402522887971089314566913686722874894056010150330861792868092087476091782493858900971490967598526136554978189312978482168299894872265880485756401427047755513237964145152374623436454285844479526586782105114135473573952311342716610213596953623144295248493718711014576540359027993440374200731057853906219838744780847848968332144571386875194350643021845319104848100537061468067491927819119793995206141966342875444064374512371819217999839101591956181467514269123974894090718649423196156794520809514655022523160388193014209376213785595663893778708303906979207734672218256259966150142150306803844773454920260541466592520149744285073251866600213243408819071048633173464965145390579626856100550810665879699816357473638405257145910289706414011097120628043903975951567715770042033786993600723055876317635942187312514712053292819182618612586732157919841484882916447060957527069572209175671167229109816909152801735067127485832228718352093539657251210835791513698820914442100675103346711031412
3
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "四天王" : [
3
+ "持国天",
4
+ "増長天",
5
+ "広目天",
6
+ "多聞天"
7
+ ]
8
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "帝釈天" : {
3
+ "持国天" : [
4
+ "乾闥婆",
5
+ "毘舎遮"
6
+ ],
7
+ "増長天" : [
8
+ "鳩槃荼",
9
+ "薜茘多"
10
+ ],
11
+ "広目天" : [
12
+ "龍神",
13
+ "毘舎闍"
14
+ ],
15
+ "多聞天" : [
16
+ "夜叉",
17
+ "羅刹"
18
+ ]
19
+ }
20
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "a\\b" : "backslash-backslash",
3
+ "a\u005Cb" : "U+005C"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "foo" : "bar",
3
+ "foo" : "baz"
4
+ }
@@ -0,0 +1,54 @@
1
+ #! /your/favourite/path/to/rspec
2
+ # -*- coding: utf-8 -*-
3
+
4
+ # Copyright (c) 2014 Urabe, Shyouhei. All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are met:
8
+ #
9
+ # - Redistributions of source code must retain the above copyright
10
+ # notice, this list of conditions and the following disclaimer.
11
+ #
12
+ # - Redistributions in binary form must reproduce the above copyright
13
+ # notice, this list of conditions and the following disclaimer in
14
+ # the documentation and/or other materials provided with the
15
+ # distribution.
16
+ #
17
+ # - Neither the name of Internet Society, IETF or IETF Trust, nor the
18
+ # names of specific contributors, may be used to endorse or promote
19
+ # products derived from this software without specific prior written
20
+ # permission.
21
+ #
22
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
23
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
+ # POSSIBILITY OF SUCH DAMAGE.
33
+
34
+ ENV['RACK_ENV'] = 'test'
35
+ require 'bundler/setup'
36
+ require 'simplecov'
37
+
38
+ SimpleCov.start do
39
+ add_filter 'vendor/'
40
+ add_filter 'spec/'
41
+ end
42
+
43
+ require_relative '../lib/RFC7159' # <- need this *after* simplecov
44
+
45
+ #
46
+ # Local Variables:
47
+ # mode: ruby
48
+ # coding: utf-8-unix
49
+ # indent-tabs-mode: t
50
+ # tab-width: 3
51
+ # ruby-indent-level: 3
52
+ # fill-column: 79
53
+ # default-justification: full
54
+ # End:
metadata ADDED
@@ -0,0 +1,520 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: RFC7159
3
+ version: !ruby/object:Gem::Version
4
+ version: '7159'
5
+ platform: ruby
6
+ authors:
7
+ - Urabe,
8
+ - Shyouhei
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-03-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.5'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.5'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '10.1'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '10.1'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rdoc
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '4.0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '4.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: yard
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.8'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.8'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '2.14'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '2.14'
84
+ - !ruby/object:Gem::Dependency
85
+ name: simplecov
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: racc
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 1.4.11
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 1.4.11
112
+ - !ruby/object:Gem::Dependency
113
+ name: json
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: yajl-ruby
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: oj
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ description: "\t\tA JSON parser/generator that conforms (I believe) to RFC7159
155
+ \ \"TheJavaScript Object Notation (JSON) Data Interchange Format\". That RFC isvery
156
+ \ different to its predecessor RFC4627, when it comes to parsing.This gem honors
157
+ the updated syntax as possible. The generator guaranteesthat a parsed valid
158
+ \ properly rounds-trip to identical valid JSONrepresentation."
159
+ email:
160
+ - shyouhei@ruby-lang.org
161
+ executables: []
162
+ extensions: []
163
+ extra_rdoc_files: []
164
+ files:
165
+ - ".gitignore"
166
+ - ".rspec"
167
+ - ".yardopts"
168
+ - Gemfile
169
+ - LICENSE.txt
170
+ - README.txt
171
+ - RFC7159
172
+ - RFC7159.gemspec
173
+ - Rakefile
174
+ - lib/RFC7159.rb
175
+ - lib/RFC7159/array.rb
176
+ - lib/RFC7159/dumper.rb
177
+ - lib/RFC7159/false.rb
178
+ - lib/RFC7159/null.rb
179
+ - lib/RFC7159/number.rb
180
+ - lib/RFC7159/object.rb
181
+ - lib/RFC7159/parser.rb
182
+ - lib/RFC7159/parser.ry
183
+ - lib/RFC7159/string.rb
184
+ - lib/RFC7159/true.rb
185
+ - lib/RFC7159/value.rb
186
+ - lib/RFC7159/version.rb
187
+ - spec/RFC7159_spec.rb
188
+ - spec/acceptance/README.txt
189
+ - spec/acceptance/invalid/0001-ws/0001-verical-tab.txt
190
+ - spec/acceptance/invalid/0001-ws/0002-null.txt
191
+ - spec/acceptance/invalid/0001-ws/0003-space-in-number-1.txt
192
+ - spec/acceptance/invalid/0001-ws/0004-space-in-number-2.txt
193
+ - spec/acceptance/invalid/0001-ws/0005-space-in-number-3.txt
194
+ - spec/acceptance/invalid/0001-ws/0006-space-in-number-4.txt
195
+ - spec/acceptance/invalid/0001-ws/0007-space-in-number-5.txt
196
+ - spec/acceptance/invalid/0001-ws/0008-space-in-number-6.txt
197
+ - spec/acceptance/invalid/0001-ws/0009-space-in-literal.txt
198
+ - spec/acceptance/invalid/0001-ws/0010-Unicode-LINE_SEPARATOR.txt
199
+ - spec/acceptance/invalid/0002-comments/0001-C-style.txt
200
+ - spec/acceptance/invalid/0002-comments/0002-C-plusplus-style.txt
201
+ - spec/acceptance/invalid/0002-comments/0003-sh-style.txt
202
+ - spec/acceptance/invalid/0002-comments/0004-python-docstring.txt
203
+ - spec/acceptance/invalid/0002-comments/0005-SQL-style.txt
204
+ - spec/acceptance/invalid/0002-comments/0006-BASIC-style.txt
205
+ - spec/acceptance/invalid/0003-literals/0001-FALSE.txt
206
+ - spec/acceptance/invalid/0003-literals/0002-NULL.txt
207
+ - spec/acceptance/invalid/0003-literals/0003-TRUE.txt
208
+ - spec/acceptance/invalid/0003-literals/0004-NUL.txt
209
+ - spec/acceptance/invalid/0003-literals/0005-nil.txt
210
+ - spec/acceptance/invalid/0003-literals/0006-undef.txt
211
+ - spec/acceptance/invalid/0003-literals/0007-modifier.txt
212
+ - spec/acceptance/invalid/0003-literals/0008-undefined.txt
213
+ - spec/acceptance/invalid/0004-numbers/0001-omit-zero.txt
214
+ - spec/acceptance/invalid/0004-numbers/0002-minus-dot.txt
215
+ - spec/acceptance/invalid/0004-numbers/0003-missing-frac.txt
216
+ - spec/acceptance/invalid/0004-numbers/0004-missing-exp.txt
217
+ - spec/acceptance/invalid/0004-numbers/0005-octal.txt
218
+ - spec/acceptance/invalid/0004-numbers/0006-hexadecimal.txt
219
+ - spec/acceptance/invalid/0004-numbers/0007-comma.txt
220
+ - spec/acceptance/invalid/0004-numbers/0008-perl-underscore.txt
221
+ - spec/acceptance/invalid/0004-numbers/0009-NaN.txt
222
+ - spec/acceptance/invalid/0004-numbers/0010-Inf.txt
223
+ - spec/acceptance/invalid/0004-numbers/0011-Infinity.txt
224
+ - spec/acceptance/invalid/0005-strings/0000-NUL.txt
225
+ - spec/acceptance/invalid/0005-strings/0001-not-terminated.txt
226
+ - spec/acceptance/invalid/0005-strings/0002-single-quote.txt
227
+ - spec/acceptance/invalid/0005-strings/0003-back-quote.txt
228
+ - spec/acceptance/invalid/0005-strings/0004-carriage-return.txt
229
+ - spec/acceptance/invalid/0005-strings/0005-line-feed.txt
230
+ - spec/acceptance/invalid/0005-strings/0006-unknown-escape-a.txt
231
+ - spec/acceptance/invalid/0005-strings/0007-unknown-escape-perl-style.txt
232
+ - spec/acceptance/invalid/0005-strings/0008-unknown-escape-C-style.txt
233
+ - spec/acceptance/invalid/0005-strings/0009-unknown-escape-ruby-style.txt
234
+ - spec/acceptance/invalid/0005-strings/0010-escape-too-short.txt
235
+ - spec/acceptance/invalid/0005-strings/0011-C-string-concat.txt
236
+ - spec/acceptance/invalid/0005-strings/0012-perl-string-concat.txt
237
+ - spec/acceptance/invalid/0005-strings/0013-Java-string-concat.txt
238
+ - spec/acceptance/invalid/0006-encodings/0001-CESU-8.txt
239
+ - spec/acceptance/invalid/0006-encodings/0002-Windows-31J.txt
240
+ - spec/acceptance/invalid/0006-encodings/0003-EBCDIC.txt
241
+ - spec/acceptance/invalid/0006-encodings/0004-overlong-utf8.txt
242
+ - spec/acceptance/invalid/0007-arrays/0001-lacks-open.txt
243
+ - spec/acceptance/invalid/0007-arrays/0002-lacks-close.txt
244
+ - spec/acceptance/invalid/0007-arrays/0003-interleaving-parens.txt
245
+ - spec/acceptance/invalid/0007-arrays/0004-dangling-comma.txt
246
+ - spec/acceptance/invalid/0007-arrays/0005-missing-comma.txt
247
+ - spec/acceptance/invalid/0007-arrays/0006-colon-instead-of-comma.txt
248
+ - spec/acceptance/invalid/0008-hashes/0001-key-missing.txt
249
+ - spec/acceptance/invalid/0008-hashes/0002-value-missing.txt
250
+ - spec/acceptance/invalid/0008-hashes/0003-true-key.txt
251
+ - spec/acceptance/invalid/0008-hashes/0004-false-key.txt
252
+ - spec/acceptance/invalid/0008-hashes/0005-null-key.txt
253
+ - spec/acceptance/invalid/0008-hashes/0006-numeric-key.txt
254
+ - spec/acceptance/invalid/0008-hashes/0007-array-key.txt
255
+ - spec/acceptance/invalid/0008-hashes/0008-hash-key.txt
256
+ - spec/acceptance/invalid/0008-hashes/0009-key-not-escaped.txt
257
+ - spec/acceptance/invalid/0009-javascriptisms/0001-JSONP.txt
258
+ - spec/acceptance/invalid/0009-javascriptisms/0002-new-Array.txt
259
+ - spec/acceptance/invalid/0009-javascriptisms/0003-new-Date.txt
260
+ - spec/acceptance/invalid/0009-javascriptisms/0004-new-Error.txt
261
+ - spec/acceptance/invalid/0009-javascriptisms/0005-Math.txt
262
+ - spec/acceptance/invalid/0009-javascriptisms/0006-regular-expression.txt
263
+ - spec/acceptance/invalid/0009-javascriptisms/0007-function.txt
264
+ - spec/acceptance/invalid/0009-javascriptisms/0008-this.txt
265
+ - spec/acceptance/invalid/0009-javascriptisms/0009-plusplus.txt
266
+ - spec/acceptance/invalid/0009-javascriptisms/0010-ternary-operator.txt
267
+ - spec/acceptance/valid/0001-ws/0001-space.json
268
+ - spec/acceptance/valid/0001-ws/0002-tab.json
269
+ - spec/acceptance/valid/0001-ws/0003-lf.json
270
+ - spec/acceptance/valid/0001-ws/0004-cr.json
271
+ - spec/acceptance/valid/0001-ws/0005-before.json
272
+ - spec/acceptance/valid/0001-ws/0006-after.json
273
+ - spec/acceptance/valid/0001-ws/0007-around-comma.json
274
+ - spec/acceptance/valid/0001-ws/0008-around-colon.json
275
+ - spec/acceptance/valid/0002-bare-values/0001-false.json
276
+ - spec/acceptance/valid/0002-bare-values/0002-null.json
277
+ - spec/acceptance/valid/0002-bare-values/0003-true.json
278
+ - spec/acceptance/valid/0002-bare-values/0004-number.json
279
+ - spec/acceptance/valid/0002-bare-values/0005-string.json
280
+ - spec/acceptance/valid/0003-literals/0001-false.json
281
+ - spec/acceptance/valid/0003-literals/0002-null.json
282
+ - spec/acceptance/valid/0003-literals/0003-true.json
283
+ - spec/acceptance/valid/0004-numbers/0000-zero.json
284
+ - spec/acceptance/valid/0004-numbers/0001-one.json
285
+ - spec/acceptance/valid/0004-numbers/0002-two.json
286
+ - spec/acceptance/valid/0004-numbers/0003-three.json
287
+ - spec/acceptance/valid/0004-numbers/0004-four.json
288
+ - spec/acceptance/valid/0004-numbers/0005-five.json
289
+ - spec/acceptance/valid/0004-numbers/0006-six.json
290
+ - spec/acceptance/valid/0004-numbers/0007-seven.json
291
+ - spec/acceptance/valid/0004-numbers/0008-eight.json
292
+ - spec/acceptance/valid/0004-numbers/0009-nine.json
293
+ - spec/acceptance/valid/0004-numbers/0010-ten.json
294
+ - spec/acceptance/valid/0004-numbers/0011-minus.json
295
+ - spec/acceptance/valid/0004-numbers/0012-fraction.json
296
+ - spec/acceptance/valid/0004-numbers/0013-exponent.json
297
+ - spec/acceptance/valid/0004-numbers/0014-exponent-minus.json
298
+ - spec/acceptance/valid/0004-numbers/0015-exponent-plus.json
299
+ - spec/acceptance/valid/0004-numbers/0016-complex.json
300
+ - spec/acceptance/valid/0004-numbers/0017-DBL_MAX.json
301
+ - spec/acceptance/valid/0004-numbers/0018-DBL_MIN.json
302
+ - spec/acceptance/valid/0004-numbers/0019-subnormal-number.json
303
+ - spec/acceptance/valid/0004-numbers/0020-1E400.json
304
+ - spec/acceptance/valid/0004-numbers/0021-pi.json
305
+ - spec/acceptance/valid/0004-numbers/0022-UINT32_MAX.json
306
+ - spec/acceptance/valid/0004-numbers/0023-UINT64_MAX.json
307
+ - spec/acceptance/valid/0004-numbers/0024-INT64_MIN.json
308
+ - spec/acceptance/valid/0004-numbers/0025-high-resolution-zero.json
309
+ - spec/acceptance/valid/0005-strings/0001-empty.json
310
+ - spec/acceptance/valid/0005-strings/0002-basic-latin.json
311
+ - spec/acceptance/valid/0005-strings/0003-escapes.json
312
+ - spec/acceptance/valid/0005-strings/0004-raw-unicode.json
313
+ - spec/acceptance/valid/0005-strings/0005-escaped-unicode.json
314
+ - spec/acceptance/valid/0005-strings/0006-escaped-NUL.json
315
+ - spec/acceptance/valid/0005-strings/0007-escaped-invalid-unicode-still-valid-as-json.json
316
+ - spec/acceptance/valid/0005-strings/0008-ruby-json-gem-cant-handle-this.json
317
+ - spec/acceptance/valid/0005-strings/0009-unescaped-invalid-javascript-still-valid-as-json.json
318
+ - spec/acceptance/valid/0006-m17n/0001-genesis.json
319
+ - spec/acceptance/valid/0006-m17n/0002-heart-sutra.json
320
+ - spec/acceptance/valid/0006-m17n/0003-escaped-valid-surrogate-pair.json
321
+ - spec/acceptance/valid/0006-m17n/0004-unescaped-valid-supplementary-multilingual-plane.json
322
+ - spec/acceptance/valid/0007-arrays/0000-empty.json
323
+ - spec/acceptance/valid/0007-arrays/0001-one-element.json
324
+ - spec/acceptance/valid/0007-arrays/0002-multiple-elements.json
325
+ - spec/acceptance/valid/0007-arrays/0003-various-types.json
326
+ - spec/acceptance/valid/0007-arrays/0004-nested.json
327
+ - spec/acceptance/valid/0008-hashes/0000-empty.json
328
+ - spec/acceptance/valid/0008-hashes/0001-onekey.json
329
+ - spec/acceptance/valid/0008-hashes/0002-many-keys.json
330
+ - spec/acceptance/valid/0008-hashes/0003-empty-key.json
331
+ - spec/acceptance/valid/0008-hashes/0004-true-value.json
332
+ - spec/acceptance/valid/0008-hashes/0005-false-value.json
333
+ - spec/acceptance/valid/0008-hashes/0006-null-value.json
334
+ - spec/acceptance/valid/0008-hashes/0007-string-value.json
335
+ - spec/acceptance/valid/0008-hashes/0008-numeric-value.json
336
+ - spec/acceptance/valid/0008-hashes/0009-array-value.json
337
+ - spec/acceptance/valid/0008-hashes/0010-hash-value.json
338
+ - spec/acceptance/valid/0008-hashes/0011-duplicate-key-in-different-representations.json
339
+ - spec/acceptance/valid/0008-hashes/0011-duplicate-key.json
340
+ - spec/spec_helper.rb
341
+ homepage: http://github.com/shyouhei/RFC7159
342
+ licenses:
343
+ - Simplified BSD License
344
+ metadata: {}
345
+ post_install_message:
346
+ rdoc_options: []
347
+ require_paths:
348
+ - lib
349
+ required_ruby_version: !ruby/object:Gem::Requirement
350
+ requirements:
351
+ - - "~>"
352
+ - !ruby/object:Gem::Version
353
+ version: '2.1'
354
+ required_rubygems_version: !ruby/object:Gem::Requirement
355
+ requirements:
356
+ - - ">="
357
+ - !ruby/object:Gem::Version
358
+ version: '0'
359
+ requirements: []
360
+ rubyforge_project:
361
+ rubygems_version: 2.2.2
362
+ signing_key:
363
+ specification_version: 4
364
+ summary: RFC7159 parser / generator
365
+ test_files:
366
+ - spec/RFC7159_spec.rb
367
+ - spec/acceptance/README.txt
368
+ - spec/acceptance/invalid/0001-ws/0001-verical-tab.txt
369
+ - spec/acceptance/invalid/0001-ws/0002-null.txt
370
+ - spec/acceptance/invalid/0001-ws/0003-space-in-number-1.txt
371
+ - spec/acceptance/invalid/0001-ws/0004-space-in-number-2.txt
372
+ - spec/acceptance/invalid/0001-ws/0005-space-in-number-3.txt
373
+ - spec/acceptance/invalid/0001-ws/0006-space-in-number-4.txt
374
+ - spec/acceptance/invalid/0001-ws/0007-space-in-number-5.txt
375
+ - spec/acceptance/invalid/0001-ws/0008-space-in-number-6.txt
376
+ - spec/acceptance/invalid/0001-ws/0009-space-in-literal.txt
377
+ - spec/acceptance/invalid/0001-ws/0010-Unicode-LINE_SEPARATOR.txt
378
+ - spec/acceptance/invalid/0002-comments/0001-C-style.txt
379
+ - spec/acceptance/invalid/0002-comments/0002-C-plusplus-style.txt
380
+ - spec/acceptance/invalid/0002-comments/0003-sh-style.txt
381
+ - spec/acceptance/invalid/0002-comments/0004-python-docstring.txt
382
+ - spec/acceptance/invalid/0002-comments/0005-SQL-style.txt
383
+ - spec/acceptance/invalid/0002-comments/0006-BASIC-style.txt
384
+ - spec/acceptance/invalid/0003-literals/0001-FALSE.txt
385
+ - spec/acceptance/invalid/0003-literals/0002-NULL.txt
386
+ - spec/acceptance/invalid/0003-literals/0003-TRUE.txt
387
+ - spec/acceptance/invalid/0003-literals/0004-NUL.txt
388
+ - spec/acceptance/invalid/0003-literals/0005-nil.txt
389
+ - spec/acceptance/invalid/0003-literals/0006-undef.txt
390
+ - spec/acceptance/invalid/0003-literals/0007-modifier.txt
391
+ - spec/acceptance/invalid/0003-literals/0008-undefined.txt
392
+ - spec/acceptance/invalid/0004-numbers/0001-omit-zero.txt
393
+ - spec/acceptance/invalid/0004-numbers/0002-minus-dot.txt
394
+ - spec/acceptance/invalid/0004-numbers/0003-missing-frac.txt
395
+ - spec/acceptance/invalid/0004-numbers/0004-missing-exp.txt
396
+ - spec/acceptance/invalid/0004-numbers/0005-octal.txt
397
+ - spec/acceptance/invalid/0004-numbers/0006-hexadecimal.txt
398
+ - spec/acceptance/invalid/0004-numbers/0007-comma.txt
399
+ - spec/acceptance/invalid/0004-numbers/0008-perl-underscore.txt
400
+ - spec/acceptance/invalid/0004-numbers/0009-NaN.txt
401
+ - spec/acceptance/invalid/0004-numbers/0010-Inf.txt
402
+ - spec/acceptance/invalid/0004-numbers/0011-Infinity.txt
403
+ - spec/acceptance/invalid/0005-strings/0000-NUL.txt
404
+ - spec/acceptance/invalid/0005-strings/0001-not-terminated.txt
405
+ - spec/acceptance/invalid/0005-strings/0002-single-quote.txt
406
+ - spec/acceptance/invalid/0005-strings/0003-back-quote.txt
407
+ - spec/acceptance/invalid/0005-strings/0004-carriage-return.txt
408
+ - spec/acceptance/invalid/0005-strings/0005-line-feed.txt
409
+ - spec/acceptance/invalid/0005-strings/0006-unknown-escape-a.txt
410
+ - spec/acceptance/invalid/0005-strings/0007-unknown-escape-perl-style.txt
411
+ - spec/acceptance/invalid/0005-strings/0008-unknown-escape-C-style.txt
412
+ - spec/acceptance/invalid/0005-strings/0009-unknown-escape-ruby-style.txt
413
+ - spec/acceptance/invalid/0005-strings/0010-escape-too-short.txt
414
+ - spec/acceptance/invalid/0005-strings/0011-C-string-concat.txt
415
+ - spec/acceptance/invalid/0005-strings/0012-perl-string-concat.txt
416
+ - spec/acceptance/invalid/0005-strings/0013-Java-string-concat.txt
417
+ - spec/acceptance/invalid/0006-encodings/0001-CESU-8.txt
418
+ - spec/acceptance/invalid/0006-encodings/0002-Windows-31J.txt
419
+ - spec/acceptance/invalid/0006-encodings/0003-EBCDIC.txt
420
+ - spec/acceptance/invalid/0006-encodings/0004-overlong-utf8.txt
421
+ - spec/acceptance/invalid/0007-arrays/0001-lacks-open.txt
422
+ - spec/acceptance/invalid/0007-arrays/0002-lacks-close.txt
423
+ - spec/acceptance/invalid/0007-arrays/0003-interleaving-parens.txt
424
+ - spec/acceptance/invalid/0007-arrays/0004-dangling-comma.txt
425
+ - spec/acceptance/invalid/0007-arrays/0005-missing-comma.txt
426
+ - spec/acceptance/invalid/0007-arrays/0006-colon-instead-of-comma.txt
427
+ - spec/acceptance/invalid/0008-hashes/0001-key-missing.txt
428
+ - spec/acceptance/invalid/0008-hashes/0002-value-missing.txt
429
+ - spec/acceptance/invalid/0008-hashes/0003-true-key.txt
430
+ - spec/acceptance/invalid/0008-hashes/0004-false-key.txt
431
+ - spec/acceptance/invalid/0008-hashes/0005-null-key.txt
432
+ - spec/acceptance/invalid/0008-hashes/0006-numeric-key.txt
433
+ - spec/acceptance/invalid/0008-hashes/0007-array-key.txt
434
+ - spec/acceptance/invalid/0008-hashes/0008-hash-key.txt
435
+ - spec/acceptance/invalid/0008-hashes/0009-key-not-escaped.txt
436
+ - spec/acceptance/invalid/0009-javascriptisms/0001-JSONP.txt
437
+ - spec/acceptance/invalid/0009-javascriptisms/0002-new-Array.txt
438
+ - spec/acceptance/invalid/0009-javascriptisms/0003-new-Date.txt
439
+ - spec/acceptance/invalid/0009-javascriptisms/0004-new-Error.txt
440
+ - spec/acceptance/invalid/0009-javascriptisms/0005-Math.txt
441
+ - spec/acceptance/invalid/0009-javascriptisms/0006-regular-expression.txt
442
+ - spec/acceptance/invalid/0009-javascriptisms/0007-function.txt
443
+ - spec/acceptance/invalid/0009-javascriptisms/0008-this.txt
444
+ - spec/acceptance/invalid/0009-javascriptisms/0009-plusplus.txt
445
+ - spec/acceptance/invalid/0009-javascriptisms/0010-ternary-operator.txt
446
+ - spec/acceptance/valid/0001-ws/0001-space.json
447
+ - spec/acceptance/valid/0001-ws/0002-tab.json
448
+ - spec/acceptance/valid/0001-ws/0003-lf.json
449
+ - spec/acceptance/valid/0001-ws/0004-cr.json
450
+ - spec/acceptance/valid/0001-ws/0005-before.json
451
+ - spec/acceptance/valid/0001-ws/0006-after.json
452
+ - spec/acceptance/valid/0001-ws/0007-around-comma.json
453
+ - spec/acceptance/valid/0001-ws/0008-around-colon.json
454
+ - spec/acceptance/valid/0002-bare-values/0001-false.json
455
+ - spec/acceptance/valid/0002-bare-values/0002-null.json
456
+ - spec/acceptance/valid/0002-bare-values/0003-true.json
457
+ - spec/acceptance/valid/0002-bare-values/0004-number.json
458
+ - spec/acceptance/valid/0002-bare-values/0005-string.json
459
+ - spec/acceptance/valid/0003-literals/0001-false.json
460
+ - spec/acceptance/valid/0003-literals/0002-null.json
461
+ - spec/acceptance/valid/0003-literals/0003-true.json
462
+ - spec/acceptance/valid/0004-numbers/0000-zero.json
463
+ - spec/acceptance/valid/0004-numbers/0001-one.json
464
+ - spec/acceptance/valid/0004-numbers/0002-two.json
465
+ - spec/acceptance/valid/0004-numbers/0003-three.json
466
+ - spec/acceptance/valid/0004-numbers/0004-four.json
467
+ - spec/acceptance/valid/0004-numbers/0005-five.json
468
+ - spec/acceptance/valid/0004-numbers/0006-six.json
469
+ - spec/acceptance/valid/0004-numbers/0007-seven.json
470
+ - spec/acceptance/valid/0004-numbers/0008-eight.json
471
+ - spec/acceptance/valid/0004-numbers/0009-nine.json
472
+ - spec/acceptance/valid/0004-numbers/0010-ten.json
473
+ - spec/acceptance/valid/0004-numbers/0011-minus.json
474
+ - spec/acceptance/valid/0004-numbers/0012-fraction.json
475
+ - spec/acceptance/valid/0004-numbers/0013-exponent.json
476
+ - spec/acceptance/valid/0004-numbers/0014-exponent-minus.json
477
+ - spec/acceptance/valid/0004-numbers/0015-exponent-plus.json
478
+ - spec/acceptance/valid/0004-numbers/0016-complex.json
479
+ - spec/acceptance/valid/0004-numbers/0017-DBL_MAX.json
480
+ - spec/acceptance/valid/0004-numbers/0018-DBL_MIN.json
481
+ - spec/acceptance/valid/0004-numbers/0019-subnormal-number.json
482
+ - spec/acceptance/valid/0004-numbers/0020-1E400.json
483
+ - spec/acceptance/valid/0004-numbers/0021-pi.json
484
+ - spec/acceptance/valid/0004-numbers/0022-UINT32_MAX.json
485
+ - spec/acceptance/valid/0004-numbers/0023-UINT64_MAX.json
486
+ - spec/acceptance/valid/0004-numbers/0024-INT64_MIN.json
487
+ - spec/acceptance/valid/0004-numbers/0025-high-resolution-zero.json
488
+ - spec/acceptance/valid/0005-strings/0001-empty.json
489
+ - spec/acceptance/valid/0005-strings/0002-basic-latin.json
490
+ - spec/acceptance/valid/0005-strings/0003-escapes.json
491
+ - spec/acceptance/valid/0005-strings/0004-raw-unicode.json
492
+ - spec/acceptance/valid/0005-strings/0005-escaped-unicode.json
493
+ - spec/acceptance/valid/0005-strings/0006-escaped-NUL.json
494
+ - spec/acceptance/valid/0005-strings/0007-escaped-invalid-unicode-still-valid-as-json.json
495
+ - spec/acceptance/valid/0005-strings/0008-ruby-json-gem-cant-handle-this.json
496
+ - spec/acceptance/valid/0005-strings/0009-unescaped-invalid-javascript-still-valid-as-json.json
497
+ - spec/acceptance/valid/0006-m17n/0001-genesis.json
498
+ - spec/acceptance/valid/0006-m17n/0002-heart-sutra.json
499
+ - spec/acceptance/valid/0006-m17n/0003-escaped-valid-surrogate-pair.json
500
+ - spec/acceptance/valid/0006-m17n/0004-unescaped-valid-supplementary-multilingual-plane.json
501
+ - spec/acceptance/valid/0007-arrays/0000-empty.json
502
+ - spec/acceptance/valid/0007-arrays/0001-one-element.json
503
+ - spec/acceptance/valid/0007-arrays/0002-multiple-elements.json
504
+ - spec/acceptance/valid/0007-arrays/0003-various-types.json
505
+ - spec/acceptance/valid/0007-arrays/0004-nested.json
506
+ - spec/acceptance/valid/0008-hashes/0000-empty.json
507
+ - spec/acceptance/valid/0008-hashes/0001-onekey.json
508
+ - spec/acceptance/valid/0008-hashes/0002-many-keys.json
509
+ - spec/acceptance/valid/0008-hashes/0003-empty-key.json
510
+ - spec/acceptance/valid/0008-hashes/0004-true-value.json
511
+ - spec/acceptance/valid/0008-hashes/0005-false-value.json
512
+ - spec/acceptance/valid/0008-hashes/0006-null-value.json
513
+ - spec/acceptance/valid/0008-hashes/0007-string-value.json
514
+ - spec/acceptance/valid/0008-hashes/0008-numeric-value.json
515
+ - spec/acceptance/valid/0008-hashes/0009-array-value.json
516
+ - spec/acceptance/valid/0008-hashes/0010-hash-value.json
517
+ - spec/acceptance/valid/0008-hashes/0011-duplicate-key-in-different-representations.json
518
+ - spec/acceptance/valid/0008-hashes/0011-duplicate-key.json
519
+ - spec/spec_helper.rb
520
+ has_rdoc: