├── .github └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── LICENSE.TESTFILES ├── README.md ├── codeformat └── HEADER ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── quilt.mod.json5 ├── settings.gradle ├── src ├── main │ └── java │ │ └── org │ │ └── quiltmc │ │ └── json5 │ │ ├── JsonReader.java │ │ ├── JsonScope.java │ │ ├── JsonToken.java │ │ ├── JsonWriter.java │ │ └── exception │ │ ├── FormatViolationException.java │ │ ├── MalformedSyntaxException.java │ │ └── ParseException.java └── test │ └── java │ └── org │ └── quiltmc │ └── json5 │ └── test │ ├── ReadTests.java │ └── WriteTests.java └── tests ├── README.md └── json5-tests ├── arrays ├── empty-array.json ├── leading-comma-array.js ├── lone-trailing-comma-array.js ├── no-comma-array.errorSpec ├── no-comma-array.txt ├── regular-array.json └── trailing-comma-array.json5 ├── comments ├── block-comment-following-array-element.json5 ├── block-comment-following-top-level-value.json5 ├── block-comment-in-string.json ├── block-comment-preceding-top-level-value.json5 ├── block-comment-with-asterisks.json5 ├── inline-comment-following-array-element.json5 ├── inline-comment-following-top-level-value.json5 ├── inline-comment-in-string.json ├── inline-comment-preceding-top-level-value.json5 ├── top-level-block-comment.errorSpec ├── top-level-block-comment.txt ├── top-level-inline-comment.errorSpec ├── top-level-inline-comment.txt └── unterminated-block-comment.txt ├── misc ├── empty.txt ├── npm-package.json ├── npm-package.json5 ├── readme-example.json5 └── valid-whitespace.json5 ├── new-lines ├── .editorconfig ├── .gitattributes ├── comment-cr.json5 ├── comment-crlf.json5 ├── comment-lf.json5 ├── escaped-cr.json5 ├── escaped-crlf.json5 └── escaped-lf.json5 ├── numbers ├── float-leading-decimal-point.json5 ├── float-leading-zero.json ├── float-trailing-decimal-point-with-integer-exponent.json5 ├── float-trailing-decimal-point.json5 ├── float-with-integer-exponent.json ├── float.json ├── hexadecimal-empty.txt ├── hexadecimal-lowercase-letter.json5 ├── hexadecimal-uppercase-x.json5 ├── hexadecimal-with-integer-exponent.json5 ├── hexadecimal.json5 ├── infinity.json5 ├── integer-with-float-exponent.txt ├── integer-with-hexadecimal-exponent.txt ├── integer-with-integer-exponent.json ├── integer-with-negative-float-exponent.txt ├── integer-with-negative-hexadecimal-exponent.txt ├── integer-with-negative-integer-exponent.json ├── integer-with-negative-zero-integer-exponent.json ├── integer-with-positive-float-exponent.txt ├── integer-with-positive-hexadecimal-exponent.txt ├── integer-with-positive-integer-exponent.json ├── integer-with-positive-zero-integer-exponent.json ├── integer-with-zero-integer-exponent.json ├── integer.json ├── lone-decimal-point.txt ├── nan.json5 ├── negative-float-leading-decimal-point.json5 ├── negative-float-leading-zero.json ├── negative-float-trailing-decimal-point.json5 ├── negative-float.json ├── negative-hexadecimal.json5 ├── negative-infinity.json5 ├── negative-integer.json ├── negative-noctal.js ├── negative-octal.txt ├── negative-zero-float-leading-decimal-point.json5 ├── negative-zero-float-trailing-decimal-point.json5 ├── negative-zero-float.json ├── negative-zero-hexadecimal.json5 ├── negative-zero-integer.json ├── negative-zero-octal.txt ├── noctal-with-leading-octal-digit.js ├── noctal.js ├── octal.txt ├── positive-float-leading-decimal-point.json5 ├── positive-float-leading-zero.json5 ├── positive-float-trailing-decimal-point.json5 ├── positive-float.json5 ├── positive-hexadecimal.json5 ├── positive-infinity.json5 ├── positive-integer.json5 ├── positive-noctal.js ├── positive-octal.txt ├── positive-zero-float-leading-decimal-point.json5 ├── positive-zero-float-trailing-decimal-point.json5 ├── positive-zero-float.json5 ├── positive-zero-hexadecimal.json5 ├── positive-zero-integer.json5 ├── positive-zero-octal.txt ├── zero-float-leading-decimal-point.json5 ├── zero-float-trailing-decimal-point.json5 ├── zero-float.json ├── zero-hexadecimal.json5 ├── zero-integer-with-integer-exponent.json ├── zero-integer.json └── zero-octal.txt ├── objects ├── duplicate-keys.json ├── empty-object.json ├── illegal-unquoted-key-number.errorSpec ├── illegal-unquoted-key-number.txt ├── illegal-unquoted-key-symbol.errorSpec ├── illegal-unquoted-key-symbol.txt ├── leading-comma-object.errorSpec ├── leading-comma-object.txt ├── lone-trailing-comma-object.txt ├── no-comma-object.txt ├── reserved-unquoted-key.json5 ├── single-quoted-key.json5 ├── trailing-comma-object.json5 └── unquoted-keys.json5 ├── strings ├── escaped-single-quoted-string.json5 ├── multi-line-string.json5 ├── no-comma-array.errorSpec ├── single-quoted-string.json5 ├── unescaped-multi-line-string.errorSpec └── unescaped-multi-line-string.txt └── todo ├── unicode-escaped-unquoted-key.json5 └── unicode-unquoted-key.json5 /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/LICENSE -------------------------------------------------------------------------------- /LICENSE.TESTFILES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/LICENSE.TESTFILES -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/README.md -------------------------------------------------------------------------------- /codeformat/HEADER: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/codeformat/HEADER -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | baseVersion=1.0.4+final 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/gradlew.bat -------------------------------------------------------------------------------- /quilt.mod.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/quilt.mod.json5 -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'quilt-json5' 2 | -------------------------------------------------------------------------------- /src/main/java/org/quiltmc/json5/JsonReader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/main/java/org/quiltmc/json5/JsonReader.java -------------------------------------------------------------------------------- /src/main/java/org/quiltmc/json5/JsonScope.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/main/java/org/quiltmc/json5/JsonScope.java -------------------------------------------------------------------------------- /src/main/java/org/quiltmc/json5/JsonToken.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/main/java/org/quiltmc/json5/JsonToken.java -------------------------------------------------------------------------------- /src/main/java/org/quiltmc/json5/JsonWriter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/main/java/org/quiltmc/json5/JsonWriter.java -------------------------------------------------------------------------------- /src/main/java/org/quiltmc/json5/exception/FormatViolationException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/main/java/org/quiltmc/json5/exception/FormatViolationException.java -------------------------------------------------------------------------------- /src/main/java/org/quiltmc/json5/exception/MalformedSyntaxException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/main/java/org/quiltmc/json5/exception/MalformedSyntaxException.java -------------------------------------------------------------------------------- /src/main/java/org/quiltmc/json5/exception/ParseException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/main/java/org/quiltmc/json5/exception/ParseException.java -------------------------------------------------------------------------------- /src/test/java/org/quiltmc/json5/test/ReadTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/test/java/org/quiltmc/json5/test/ReadTests.java -------------------------------------------------------------------------------- /src/test/java/org/quiltmc/json5/test/WriteTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/src/test/java/org/quiltmc/json5/test/WriteTests.java -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/json5-tests/arrays/empty-array.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /tests/json5-tests/arrays/leading-comma-array.js: -------------------------------------------------------------------------------- 1 | [ 2 | ,null 3 | ] -------------------------------------------------------------------------------- /tests/json5-tests/arrays/lone-trailing-comma-array.js: -------------------------------------------------------------------------------- 1 | [ 2 | , 3 | ] -------------------------------------------------------------------------------- /tests/json5-tests/arrays/no-comma-array.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/arrays/no-comma-array.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/arrays/no-comma-array.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/arrays/no-comma-array.txt -------------------------------------------------------------------------------- /tests/json5-tests/arrays/regular-array.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/arrays/regular-array.json -------------------------------------------------------------------------------- /tests/json5-tests/arrays/trailing-comma-array.json5: -------------------------------------------------------------------------------- 1 | [ 2 | null, 3 | ] -------------------------------------------------------------------------------- /tests/json5-tests/comments/block-comment-following-array-element.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/block-comment-following-array-element.json5 -------------------------------------------------------------------------------- /tests/json5-tests/comments/block-comment-following-top-level-value.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/block-comment-following-top-level-value.json5 -------------------------------------------------------------------------------- /tests/json5-tests/comments/block-comment-in-string.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/block-comment-in-string.json -------------------------------------------------------------------------------- /tests/json5-tests/comments/block-comment-preceding-top-level-value.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/block-comment-preceding-top-level-value.json5 -------------------------------------------------------------------------------- /tests/json5-tests/comments/block-comment-with-asterisks.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/block-comment-with-asterisks.json5 -------------------------------------------------------------------------------- /tests/json5-tests/comments/inline-comment-following-array-element.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/inline-comment-following-array-element.json5 -------------------------------------------------------------------------------- /tests/json5-tests/comments/inline-comment-following-top-level-value.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/inline-comment-following-top-level-value.json5 -------------------------------------------------------------------------------- /tests/json5-tests/comments/inline-comment-in-string.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/inline-comment-in-string.json -------------------------------------------------------------------------------- /tests/json5-tests/comments/inline-comment-preceding-top-level-value.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/inline-comment-preceding-top-level-value.json5 -------------------------------------------------------------------------------- /tests/json5-tests/comments/top-level-block-comment.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/top-level-block-comment.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/comments/top-level-block-comment.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/top-level-block-comment.txt -------------------------------------------------------------------------------- /tests/json5-tests/comments/top-level-inline-comment.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/top-level-inline-comment.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/comments/top-level-inline-comment.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/top-level-inline-comment.txt -------------------------------------------------------------------------------- /tests/json5-tests/comments/unterminated-block-comment.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/comments/unterminated-block-comment.txt -------------------------------------------------------------------------------- /tests/json5-tests/misc/empty.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/json5-tests/misc/npm-package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/misc/npm-package.json -------------------------------------------------------------------------------- /tests/json5-tests/misc/npm-package.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/misc/npm-package.json5 -------------------------------------------------------------------------------- /tests/json5-tests/misc/readme-example.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/misc/readme-example.json5 -------------------------------------------------------------------------------- /tests/json5-tests/misc/valid-whitespace.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/misc/valid-whitespace.json5 -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/.editorconfig -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/.gitattributes -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/comment-cr.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/comment-cr.json5 -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/comment-crlf.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/comment-crlf.json5 -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/comment-lf.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/comment-lf.json5 -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/escaped-cr.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/escaped-cr.json5 -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/escaped-crlf.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/escaped-crlf.json5 -------------------------------------------------------------------------------- /tests/json5-tests/new-lines/escaped-lf.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/new-lines/escaped-lf.json5 -------------------------------------------------------------------------------- /tests/json5-tests/numbers/float-leading-decimal-point.json5: -------------------------------------------------------------------------------- 1 | .5 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/float-leading-zero.json: -------------------------------------------------------------------------------- 1 | 0.5 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/float-trailing-decimal-point-with-integer-exponent.json5: -------------------------------------------------------------------------------- 1 | 5.e4 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/float-trailing-decimal-point.json5: -------------------------------------------------------------------------------- 1 | 5. 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/float-with-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 1.2e3 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/float.json: -------------------------------------------------------------------------------- 1 | 1.2 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/hexadecimal-empty.txt: -------------------------------------------------------------------------------- 1 | 0x 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/hexadecimal-lowercase-letter.json5: -------------------------------------------------------------------------------- 1 | 0xc8 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/hexadecimal-uppercase-x.json5: -------------------------------------------------------------------------------- 1 | 0XC8 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/hexadecimal-with-integer-exponent.json5: -------------------------------------------------------------------------------- 1 | 0xc8e4 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/hexadecimal.json5: -------------------------------------------------------------------------------- 1 | 0xC8 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/infinity.json5: -------------------------------------------------------------------------------- 1 | Infinity 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-float-exponent.txt: -------------------------------------------------------------------------------- 1 | 1e2.3 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-hexadecimal-exponent.txt: -------------------------------------------------------------------------------- 1 | 1e0x4 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 2e23 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-negative-float-exponent.txt: -------------------------------------------------------------------------------- 1 | 1e-2.3 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-negative-hexadecimal-exponent.txt: -------------------------------------------------------------------------------- 1 | 1e-0x4 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-negative-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 2e-23 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-negative-zero-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 5e-0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-positive-float-exponent.txt: -------------------------------------------------------------------------------- 1 | 1e+2.3 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-positive-hexadecimal-exponent.txt: -------------------------------------------------------------------------------- 1 | 1e+0x4 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-positive-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 1e+2 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-positive-zero-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 5e+0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer-with-zero-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 5e0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/integer.json: -------------------------------------------------------------------------------- 1 | 15 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/lone-decimal-point.txt: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/nan.json5: -------------------------------------------------------------------------------- 1 | NaN 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-float-leading-decimal-point.json5: -------------------------------------------------------------------------------- 1 | -.5 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-float-leading-zero.json: -------------------------------------------------------------------------------- 1 | -0.5 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-float-trailing-decimal-point.json5: -------------------------------------------------------------------------------- 1 | -5. 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-float.json: -------------------------------------------------------------------------------- 1 | -1.2 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-hexadecimal.json5: -------------------------------------------------------------------------------- 1 | -0xC8 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-infinity.json5: -------------------------------------------------------------------------------- 1 | -Infinity 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-integer.json: -------------------------------------------------------------------------------- 1 | -15 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-noctal.js: -------------------------------------------------------------------------------- 1 | -098 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-octal.txt: -------------------------------------------------------------------------------- 1 | -0123 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-zero-float-leading-decimal-point.json5: -------------------------------------------------------------------------------- 1 | -.0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-zero-float-trailing-decimal-point.json5: -------------------------------------------------------------------------------- 1 | -0. 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-zero-float.json: -------------------------------------------------------------------------------- 1 | -0.0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-zero-hexadecimal.json5: -------------------------------------------------------------------------------- 1 | -0x0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-zero-integer.json: -------------------------------------------------------------------------------- 1 | -0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/negative-zero-octal.txt: -------------------------------------------------------------------------------- 1 | -00 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/noctal-with-leading-octal-digit.js: -------------------------------------------------------------------------------- 1 | 0780 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/noctal.js: -------------------------------------------------------------------------------- 1 | 080 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/octal.txt: -------------------------------------------------------------------------------- 1 | 010 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-float-leading-decimal-point.json5: -------------------------------------------------------------------------------- 1 | +.5 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-float-leading-zero.json5: -------------------------------------------------------------------------------- 1 | +0.5 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-float-trailing-decimal-point.json5: -------------------------------------------------------------------------------- 1 | +5. 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-float.json5: -------------------------------------------------------------------------------- 1 | +1.2 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-hexadecimal.json5: -------------------------------------------------------------------------------- 1 | +0xC8 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-infinity.json5: -------------------------------------------------------------------------------- 1 | +Infinity 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-integer.json5: -------------------------------------------------------------------------------- 1 | +15 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-noctal.js: -------------------------------------------------------------------------------- 1 | +098 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-octal.txt: -------------------------------------------------------------------------------- 1 | +0123 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-zero-float-leading-decimal-point.json5: -------------------------------------------------------------------------------- 1 | +.0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-zero-float-trailing-decimal-point.json5: -------------------------------------------------------------------------------- 1 | +0. 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-zero-float.json5: -------------------------------------------------------------------------------- 1 | +0.0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-zero-hexadecimal.json5: -------------------------------------------------------------------------------- 1 | +0x0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-zero-integer.json5: -------------------------------------------------------------------------------- 1 | +0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/positive-zero-octal.txt: -------------------------------------------------------------------------------- 1 | +00 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/zero-float-leading-decimal-point.json5: -------------------------------------------------------------------------------- 1 | .0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/zero-float-trailing-decimal-point.json5: -------------------------------------------------------------------------------- 1 | 0. 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/zero-float.json: -------------------------------------------------------------------------------- 1 | 0.0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/zero-hexadecimal.json5: -------------------------------------------------------------------------------- 1 | 0x0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/zero-integer-with-integer-exponent.json: -------------------------------------------------------------------------------- 1 | 0e23 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/zero-integer.json: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/json5-tests/numbers/zero-octal.txt: -------------------------------------------------------------------------------- 1 | 00 2 | -------------------------------------------------------------------------------- /tests/json5-tests/objects/duplicate-keys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/duplicate-keys.json -------------------------------------------------------------------------------- /tests/json5-tests/objects/empty-object.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /tests/json5-tests/objects/illegal-unquoted-key-number.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/illegal-unquoted-key-number.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/objects/illegal-unquoted-key-number.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/illegal-unquoted-key-number.txt -------------------------------------------------------------------------------- /tests/json5-tests/objects/illegal-unquoted-key-symbol.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/illegal-unquoted-key-symbol.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/objects/illegal-unquoted-key-symbol.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/illegal-unquoted-key-symbol.txt -------------------------------------------------------------------------------- /tests/json5-tests/objects/leading-comma-object.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/leading-comma-object.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/objects/leading-comma-object.txt: -------------------------------------------------------------------------------- 1 | { 2 | ,"foo": "bar" 3 | } -------------------------------------------------------------------------------- /tests/json5-tests/objects/lone-trailing-comma-object.txt: -------------------------------------------------------------------------------- 1 | { 2 | , 3 | } -------------------------------------------------------------------------------- /tests/json5-tests/objects/no-comma-object.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/no-comma-object.txt -------------------------------------------------------------------------------- /tests/json5-tests/objects/reserved-unquoted-key.json5: -------------------------------------------------------------------------------- 1 | { 2 | while: true 3 | } -------------------------------------------------------------------------------- /tests/json5-tests/objects/single-quoted-key.json5: -------------------------------------------------------------------------------- 1 | { 2 | 'hello': "world" 3 | } -------------------------------------------------------------------------------- /tests/json5-tests/objects/trailing-comma-object.json5: -------------------------------------------------------------------------------- 1 | { 2 | "foo": "bar", 3 | } -------------------------------------------------------------------------------- /tests/json5-tests/objects/unquoted-keys.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/objects/unquoted-keys.json5 -------------------------------------------------------------------------------- /tests/json5-tests/strings/escaped-single-quoted-string.json5: -------------------------------------------------------------------------------- 1 | 'I can\'t wait' -------------------------------------------------------------------------------- /tests/json5-tests/strings/multi-line-string.json5: -------------------------------------------------------------------------------- 1 | 'hello\ 2 | world' -------------------------------------------------------------------------------- /tests/json5-tests/strings/no-comma-array.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/strings/no-comma-array.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/strings/single-quoted-string.json5: -------------------------------------------------------------------------------- 1 | 'hello world' -------------------------------------------------------------------------------- /tests/json5-tests/strings/unescaped-multi-line-string.errorSpec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/strings/unescaped-multi-line-string.errorSpec -------------------------------------------------------------------------------- /tests/json5-tests/strings/unescaped-multi-line-string.txt: -------------------------------------------------------------------------------- 1 | "foo 2 | bar" 3 | -------------------------------------------------------------------------------- /tests/json5-tests/todo/unicode-escaped-unquoted-key.json5: -------------------------------------------------------------------------------- 1 | { 2 | sig\u03A3ma: "the sum of all things" 3 | } -------------------------------------------------------------------------------- /tests/json5-tests/todo/unicode-unquoted-key.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/QuiltMC/quilt-json5/HEAD/tests/json5-tests/todo/unicode-unquoted-key.json5 --------------------------------------------------------------------------------