├── .gitignore ├── .npmignore ├── .nvmrc ├── .qlty └── qlty.toml ├── .travis.yml ├── .vscode ├── extensions.json └── settings.json ├── LICENSE ├── Makefile ├── README.md ├── eslint.config.mjs ├── generate.ts ├── index.ts ├── next-json.pegjs ├── package.json ├── test ├── errors.test.ts ├── json.test.ts ├── json │ ├── array.json │ ├── nested.json │ ├── numbers.json │ └── string.json ├── njson.test.ts ├── njson │ ├── array.njson │ ├── bigint.njson │ ├── dates.njson │ ├── dates.out.njson │ ├── empty.njson │ ├── empty.out.njson │ ├── error.njson │ ├── map.njson │ ├── numbers.njson │ ├── regexp.njson │ ├── set.njson │ ├── string.njson │ ├── string.out.njson │ ├── typed_array08.njson │ ├── typed_array16.njson │ ├── typed_array32.njson │ ├── typed_array64.njson │ ├── undefined.njson │ ├── undefined.out.njson │ └── url.njson ├── options.test.ts ├── plain.njson ├── polyfills.test.ts ├── references.test.ts ├── references │ ├── circular_arrays.legacy.njson │ ├── circular_arrays.njson │ ├── circular_maps.legacy.njson │ ├── circular_maps.njson │ ├── circular_mixed_1.legacy.njson │ ├── circular_mixed_1.njson │ ├── circular_mixed_2.legacy.njson │ ├── circular_mixed_2.njson │ ├── circular_objects.legacy.njson │ ├── circular_objects.njson │ ├── circular_sets.legacy.njson │ ├── circular_sets.njson │ ├── errors.legacy.njson │ ├── errors.njson │ ├── long_strings.legacy.njson │ ├── long_strings.njson │ ├── repeated_references.legacy.njson │ ├── repeated_references.njson │ ├── repeated_references_created.legacy.njson │ ├── repeated_references_created.njson │ ├── repeated_references_removed.legacy.njson │ └── repeated_references_removed.njson └── space.njson ├── tsconfig.build.json ├── tsconfig.cjs.json ├── tsconfig.esm.json ├── tsconfig.json ├── tsconfig.types.json ├── vitest.config.ts └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | *.tgz 2 | coverage 3 | dist 4 | node_modules 5 | parser.ts 6 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/.npmignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v22.16.0 2 | -------------------------------------------------------------------------------- /.qlty/qlty.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/.qlty/qlty.toml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /generate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/generate.ts -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/index.ts -------------------------------------------------------------------------------- /next-json.pegjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/next-json.pegjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/package.json -------------------------------------------------------------------------------- /test/errors.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/errors.test.ts -------------------------------------------------------------------------------- /test/json.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/json.test.ts -------------------------------------------------------------------------------- /test/json/array.json: -------------------------------------------------------------------------------- 1 | [false, null, true, []] 2 | -------------------------------------------------------------------------------- /test/json/nested.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/json/nested.json -------------------------------------------------------------------------------- /test/json/numbers.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/json/numbers.json -------------------------------------------------------------------------------- /test/json/string.json: -------------------------------------------------------------------------------- 1 | "\"\\/\b\f\n\r\t\u2611" 2 | -------------------------------------------------------------------------------- /test/njson.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson.test.ts -------------------------------------------------------------------------------- /test/njson/array.njson: -------------------------------------------------------------------------------- 1 | [false,null,true,undefined] 2 | -------------------------------------------------------------------------------- /test/njson/bigint.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/bigint.njson -------------------------------------------------------------------------------- /test/njson/dates.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/dates.njson -------------------------------------------------------------------------------- /test/njson/dates.out.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/dates.out.njson -------------------------------------------------------------------------------- /test/njson/empty.njson: -------------------------------------------------------------------------------- 1 | { 2 | } 3 | -------------------------------------------------------------------------------- /test/njson/empty.out.njson: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /test/njson/error.njson: -------------------------------------------------------------------------------- 1 | new Error("njson") 2 | -------------------------------------------------------------------------------- /test/njson/map.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/map.njson -------------------------------------------------------------------------------- /test/njson/numbers.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/numbers.njson -------------------------------------------------------------------------------- /test/njson/regexp.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/regexp.njson -------------------------------------------------------------------------------- /test/njson/set.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/set.njson -------------------------------------------------------------------------------- /test/njson/string.njson: -------------------------------------------------------------------------------- 1 | ["n\u006a\so\x6e","\\\/\""] 2 | -------------------------------------------------------------------------------- /test/njson/string.out.njson: -------------------------------------------------------------------------------- 1 | ["njson","\\/\""] 2 | -------------------------------------------------------------------------------- /test/njson/typed_array08.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/typed_array08.njson -------------------------------------------------------------------------------- /test/njson/typed_array16.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/typed_array16.njson -------------------------------------------------------------------------------- /test/njson/typed_array32.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/typed_array32.njson -------------------------------------------------------------------------------- /test/njson/typed_array64.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/typed_array64.njson -------------------------------------------------------------------------------- /test/njson/undefined.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/undefined.njson -------------------------------------------------------------------------------- /test/njson/undefined.out.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/undefined.out.njson -------------------------------------------------------------------------------- /test/njson/url.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/njson/url.njson -------------------------------------------------------------------------------- /test/options.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/options.test.ts -------------------------------------------------------------------------------- /test/plain.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/plain.njson -------------------------------------------------------------------------------- /test/polyfills.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/polyfills.test.ts -------------------------------------------------------------------------------- /test/references.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references.test.ts -------------------------------------------------------------------------------- /test/references/circular_arrays.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_arrays.legacy.njson -------------------------------------------------------------------------------- /test/references/circular_arrays.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_arrays.njson -------------------------------------------------------------------------------- /test/references/circular_maps.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_maps.legacy.njson -------------------------------------------------------------------------------- /test/references/circular_maps.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_maps.njson -------------------------------------------------------------------------------- /test/references/circular_mixed_1.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_mixed_1.legacy.njson -------------------------------------------------------------------------------- /test/references/circular_mixed_1.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_mixed_1.njson -------------------------------------------------------------------------------- /test/references/circular_mixed_2.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_mixed_2.legacy.njson -------------------------------------------------------------------------------- /test/references/circular_mixed_2.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_mixed_2.njson -------------------------------------------------------------------------------- /test/references/circular_objects.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_objects.legacy.njson -------------------------------------------------------------------------------- /test/references/circular_objects.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_objects.njson -------------------------------------------------------------------------------- /test/references/circular_sets.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_sets.legacy.njson -------------------------------------------------------------------------------- /test/references/circular_sets.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/circular_sets.njson -------------------------------------------------------------------------------- /test/references/errors.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/errors.legacy.njson -------------------------------------------------------------------------------- /test/references/errors.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/errors.njson -------------------------------------------------------------------------------- /test/references/long_strings.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/long_strings.legacy.njson -------------------------------------------------------------------------------- /test/references/long_strings.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/long_strings.njson -------------------------------------------------------------------------------- /test/references/repeated_references.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/repeated_references.legacy.njson -------------------------------------------------------------------------------- /test/references/repeated_references.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/repeated_references.njson -------------------------------------------------------------------------------- /test/references/repeated_references_created.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/repeated_references_created.legacy.njson -------------------------------------------------------------------------------- /test/references/repeated_references_created.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/repeated_references_created.njson -------------------------------------------------------------------------------- /test/references/repeated_references_removed.legacy.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/repeated_references_removed.legacy.njson -------------------------------------------------------------------------------- /test/references/repeated_references_removed.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/references/repeated_references_removed.njson -------------------------------------------------------------------------------- /test/space.njson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/test/space.njson -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/tsconfig.cjs.json -------------------------------------------------------------------------------- /tsconfig.esm.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/tsconfig.esm.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.types.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/tsconfig.types.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/vitest.config.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iccicci/next-json/HEAD/yarn.lock --------------------------------------------------------------------------------