{"id":15777569,"url":"https://github.com/shinovon/NNJSON","last_synced_at":"2025-10-15T21:30:56.442Z","repository":{"id":113945615,"uuid":"425476126","full_name":"shinovon/NNJSON","owner":"shinovon","description":"JSON library for Java, compatible with CLDC 1.1 \u0026 JDK 1.1","archived":false,"fork":false,"pushed_at":"2025-01-13T10:06:46.000Z","size":64,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T11:24:48.163Z","etag":null,"topics":["j2me","json","json-library"],"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/shinovon.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":"2021-11-07T10:46:03.000Z","updated_at":"2025-01-13T10:06:49.000Z","dependencies_parsed_at":"2024-12-13T05:28:43.450Z","dependency_job_id":null,"html_url":"https://github.com/shinovon/NNJSON","commit_stats":null,"previous_names":["shinovon/nnjson"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinovon%2FNNJSON","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinovon%2FNNJSON/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinovon%2FNNJSON/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinovon%2FNNJSON/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinovon","download_url":"https://codeload.github.com/shinovon/NNJSON/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236646107,"owners_count":19182599,"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":["j2me","json","json-library"],"created_at":"2024-10-04T18:00:48.887Z","updated_at":"2025-10-15T21:30:51.156Z","avatar_url":"https://github.com/shinovon.png","language":"Java","funding_links":[],"categories":["Development"],"sub_categories":[],"readme":"# cc.nnproject.json\nJSON library for Java, compatible with CLDC 1.1 \u0026 JDK 1.1 \n\n## Usage example:\n\n`JSON`:\n```\nJSONObject json = JSON.getObject(str);\nSystem.out.println(json.getArray(\"messages\").getObject(0).getNullableString(\"text\"));\n```\n\n`JSONArray`, `JSONObject`:\n```\nJSONArray objects = new JSONArray();\n\nJSONObject object1 = new JSONObject();\nobject1.put(\"some\", \"Example text\");\nobjects.add(object1);\n\nJSONObject object2 = new JSONObject();\nobject2.put(\"n\", 292);\nobjects.add(object2);\n\nSystem.out.println(objects.build());\n```\n\n`JSONStream`:\n```\nJSONStream stream = JSONStream.getStream(connection.openInputStream());\ntry {\n\tstream.expectNextTrim('{');\n\t\n\tif(!stream.jumpToKey(\"response\")) return;\n\tstream.expectNextTrim('{');\n\t\n\tif(!stream.jumpToKey(\"items\")) return;\n\tstream.expectNextTrim('[');\n\t\n\tif(!stream.skipArrayElements(3)) return;\n\tstream.expectNextTrim('{');\n\t\n\tif(!stream.jumpToKey(\"date\")) return;\n\t\n\tSystem.out.println(stream.nextValue());\n} finally {\n\tstream.close();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinovon%2FNNJSON","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinovon%2FNNJSON","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinovon%2FNNJSON/lists"}