{"id":23128178,"url":"https://github.com/victorqueiroz/jesson","last_synced_at":"2026-04-26T23:31:46.581Z","repository":{"id":42740663,"uuid":"254270976","full_name":"VictorQueiroz/jesson","owner":"VictorQueiroz","description":"JSON implementation with support for new ECMAScript BigInt","archived":false,"fork":false,"pushed_at":"2026-04-18T03:21:32.000Z","size":200,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-18T05:33:32.727Z","etag":null,"topics":["json"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VictorQueiroz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-09T04:28:38.000Z","updated_at":"2026-04-18T03:21:31.000Z","dependencies_parsed_at":"2023-02-05T04:16:49.329Z","dependency_job_id":null,"html_url":"https://github.com/VictorQueiroz/jesson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/VictorQueiroz/jesson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fjesson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fjesson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fjesson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fjesson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VictorQueiroz","download_url":"https://codeload.github.com/VictorQueiroz/jesson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VictorQueiroz%2Fjesson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32317163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json"],"created_at":"2024-12-17T09:17:40.490Z","updated_at":"2026-04-26T23:31:46.576Z","avatar_url":"https://github.com/VictorQueiroz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JESSON\n\nA JSON parser and stringifier written in TypeScript with support for BigInt.\n\n## Features\n\n- 🚀 Pure TypeScript implementation\n- 📦 ES Module support\n- 🔢 BigInt support for large integers\n- 🎯 Type-safe with full TypeScript definitions\n- ✅ Comprehensive test coverage (56 tests)\n- 📊 Benchmarked against native JSON\n\n## Installation\n\n```bash\nnpm install jesson\n```\n\n## Usage\n\n```typescript\nimport { JSON as JESSON } from 'jesson';\n\n// Parse JSON with BigInt support\nconst data = JESSON.parse('{\"id\": 12345678901234567890}');\n// { id: 12345678901234567890n }\n\n// Stringify objects with BigInt\nconst obj = { value: 9007199254740991n };\nconst json = JESSON.stringify(obj);\n// '{\"value\":9007199254740991}'\n```\n\n## API\n\n### `JESSON.parse(jsonString: string): any`\n\nParses a JSON string and returns the corresponding JavaScript value. Automatically detects and converts large integers to BigInt.\n\n### `JESSON.stringify(value: any): string`\n\nConverts a JavaScript value to a JSON string. Supports BigInt values.\n\n## Advanced Usage\n\n### Direct AST Manipulation\n\nJESSON exposes the underlying tokenizer, parser, and stringifier for advanced use cases:\n\n```typescript\nimport { Tokenizer, Parser, Stringifier } from 'jesson';\n\n// Tokenize\nconst tokens = new Tokenizer('{\"key\": \"value\"}').tokenize();\n\n// Parse to AST\nconst ast = new Parser(tokens).parse();\n\n// Stringify AST\nconst json = new Stringifier(ast).stringify();\n```\n\n## Performance\n\nJESSON is written in TypeScript for educational purposes. For production use cases requiring maximum performance, use the native `JSON` object. See benchmark results:\n\n```bash\nnpm run benchmark\n```\n\nSample results show native JSON is typically 2-100x faster depending on the operation and data size, which is expected as it's a C++ implementation.\n\n### Performance Profiling\n\nTo identify performance bottlenecks and visualize where time is spent:\n\n```bash\n# Generate flame graph visualization\nnpm run benchmark:profile\n\n# Generate performance recommendations\nnpm run benchmark:doctor\n```\n\nThese commands use **[Clinic.js](https://clinicjs.org/)**, a professional Node.js performance profiling tool that generates interactive HTML reports showing:\n- **Flame graphs**: Visual representation of where CPU time is spent\n- **Performance bottlenecks**: Identifies slow functions and call stacks\n- **Optimization opportunities**: Recommendations for improving performance\n\nReports are saved to the `.clinic/` directory and can be opened in any web browser.\n\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Run tests\nnpm test\n\n# Run benchmarks\nnpm run benchmark\n\n# Build\nnpm run build\n```\n\n## Testing\n\nJESSON has comprehensive test coverage with 56 tests covering:\n\n- Tokenizer edge cases\n- Parser functionality\n- Stringifier output\n- BigInt handling\n- Error scenarios\n- String escaping\n- Nested structures\n\n## License\n\nMIT\n\n## Author\n\nVictor Queiroz\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorqueiroz%2Fjesson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorqueiroz%2Fjesson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorqueiroz%2Fjesson/lists"}