{"id":37083743,"url":"https://github.com/jsh6789/ijp","last_synced_at":"2026-01-14T10:13:35.828Z","repository":{"id":271259733,"uuid":"912882048","full_name":"jsh6789/ijp","owner":"jsh6789","description":"Parser for JSON data generated by LLMs.","archived":false,"fork":false,"pushed_at":"2025-01-06T16:03:24.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-16T03:33:45.651Z","etag":null,"topics":["incremental-parsing","json","json-parser","large-language-model","llm","python","unlicense"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsh6789.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}},"created_at":"2025-01-06T15:32:14.000Z","updated_at":"2025-01-07T17:29:18.000Z","dependencies_parsed_at":"2025-01-06T16:38:53.064Z","dependency_job_id":"8e9aeb57-ed65-425a-a2e5-1a83b7963ac0","html_url":"https://github.com/jsh6789/ijp","commit_stats":null,"previous_names":["jsh6789/ijp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jsh6789/ijp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsh6789%2Fijp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsh6789%2Fijp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsh6789%2Fijp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsh6789%2Fijp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsh6789","download_url":"https://codeload.github.com/jsh6789/ijp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsh6789%2Fijp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["incremental-parsing","json","json-parser","large-language-model","llm","python","unlicense"],"created_at":"2026-01-14T10:13:35.384Z","updated_at":"2026-01-14T10:13:35.824Z","avatar_url":"https://github.com/jsh6789.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Incremental JSON Parser\n\nAn incremental JSON parser geared towards handling JSON data generated by Large Language Models (LLMs). It is ideal in any situation where you need to process JSON data containing long string values as it arrives in small chunks.\n\n## Installation from Git\n\nTo install the Incremental JSON Parser, clone the repository and use `pip` to install the package:\n\n```bash\ngit clone https://github.com/jsh6789/ijp.git\ncd ijp\npip install .\n```\n\n## Usage\n\nThe example below shows how to use the parser in your own scripts:\n\n```python\nfrom ijp import IncrementalJSONParser\n\njson_string = '''\n{\n    \"price\": 19.99,\n    \"itemNo\": \"3735272\",\n    \"modulars\" : [\n        {\n            \"zone\": \"A\",\n            \"section\": 29,\n            \"position\": 10\n        },\n        {\n            \"zone\": \"A\",\n            \"section\": 29,\n            \"position\": 15\n        }\n    ]\n}'''\n\n# For demonstratory purpose: break the JSON into chunks.\nchunk_size = 4\nchunk_list = [\n    json_string[i:i + chunk_size] for i in range(0, len(json_string), chunk_size)\n]\n\nwith IncrementalJSONParser() as parser:\n    for chunk in chunk_list:\n        parser.send(chunk)\n        for token in parser:\n            print(token)\n```\n\nThis will output:\n\n```\n(['price'], 'float', 19.99)\n(['itemNo'], 'stringpart', '37')\n(['itemNo'], 'stringpart', '3527')\n(['itemNo'], 'stringpart', '2')\n(['itemNo'], 'string', '3735272')\n(['modulars', 0, 'zone'], 'stringpart', 'A')\n(['modulars', 0, 'zone'], 'string', 'A')\n(['modulars', 0, 'section'], 'int', 29)\n(['modulars', 0, 'position'], 'int', 10)\n(['modulars', 1, 'zone'], 'stringpart', 'A')\n(['modulars', 1, 'zone'], 'string', 'A')\n(['modulars', 1, 'section'], 'int', 29)\n(['modulars', 1, 'position'], 'int', 15)\n```\n\nMore examples demonstrating uses for this parser can be found in the 'examples' directory.\n\n## License\n\nThis project is in the public domain. See the accompanying UNLICENSE file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsh6789%2Fijp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsh6789%2Fijp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsh6789%2Fijp/lists"}