{"id":19816242,"url":"https://github.com/comodal/json-iterator","last_synced_at":"2025-05-01T10:32:28.918Z","repository":{"id":194796263,"uuid":"126750548","full_name":"comodal/json-iterator","owner":"comodal","description":"Performance focused Java JSON Parser","archived":false,"fork":false,"pushed_at":"2024-08-17T02:43:15.000Z","size":1210,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-17T21:31:58.098Z","etag":null,"topics":["java","java-12","json","json-iterator","json-parser"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comodal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-25T23:53:10.000Z","updated_at":"2024-08-17T02:43:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2221902-0e6c-4929-9061-4e8ead7ccc01","html_url":"https://github.com/comodal/json-iterator","commit_stats":null,"previous_names":["comodal/json-iterator"],"tags_count":109,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comodal%2Fjson-iterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comodal%2Fjson-iterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comodal%2Fjson-iterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comodal%2Fjson-iterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comodal","download_url":"https://codeload.github.com/comodal/json-iterator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224253481,"owners_count":17280934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["java","java-12","json","json-iterator","json-parser"],"created_at":"2024-11-12T10:08:48.085Z","updated_at":"2025-05-01T10:32:28.912Z","avatar_url":"https://github.com/comodal.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Iterator [![Build](https://github.com/comodal/json-iterator/workflows/Gradle%20Check/badge.svg)](https://github.com/comodal/json-iterator/actions)\n\nJSON Iterator is a minimal adaption of the [stream parsing features](http://jsoniter.com/java-features.html#iterator-to-rescue) from the project [json-iterator/java](https://github.com/json-iterator/java).\n\nFunctionality has been extended with inversion-of-control mechanics to help minimize object creation.\n\nParsing supports String, byte[], char[] and InputStream data sources.\n\n## Basic Usage\n\nSee [JsonIterator.java](systems.comodal.json_iterator/src/main/java/systems/comodal/jsoniter/JsonIterator.java) for the public interface.\n\n```java\nvar jsonIterator = JsonIterator.parse(\"{\\\"hello\\\": \\\"world\\\"}\");\nSystem.out.println(jsonIterator.readObjField() + ' ' + jsonIterator.readString());\n```\n\n## Recommended Usage\n\nIf the presence and ordering of the JSON object fields are guaranteed to always be the same, follow the [`StaticFieldOrdering`](systems.comodal.json_iterator/src/jmh/java/systems/comodal/jsoniter/jmh/styles/StaticFieldOrdering.java#L19) style and simply skip over object field entries.\n\nOtherwise, follow the [`IocLoopCompareStringFieldToCharsIf`](systems.comodal.json_iterator/src/jmh/java/systems/comodal/jsoniter/jmh/styles/IocLoopCompareStringFieldToCharsIf.java#L22) style, which enables inversion of control while it iterates over object fields in conjunction with comparing expected field strings against a field character array.  The advantage of this strategy is that it avoids constructing Strings for object fields.\n\nIf the first character for all of an objects' fields are unique, follow either the [`IocLoopCharIf`](systems.comodal.json_iterator/src/jmh/java/systems/comodal/jsoniter/jmh/styles/IocLoopCharIf.java#L20) or [`IocLoopCharSwitch`](systems.comodal.json_iterator/src/jmh/java/systems/comodal/jsoniter/jmh/styles/IocLoopCharSwitch.java#L20) style.  Similar to the style `IocLoopCompareStringFieldToCharsIf`, these styles avoid constructing Strings for object fields.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomodal%2Fjson-iterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomodal%2Fjson-iterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomodal%2Fjson-iterator/lists"}