{"id":22864346,"url":"https://github.com/jimblackler/usejson","last_synced_at":"2025-03-31T09:44:46.382Z","repository":{"id":141995666,"uuid":"304406263","full_name":"jimblackler/usejson","owner":"jimblackler","description":"JSON5 and JSON parser for Java. Creates a tree of data in either standard Maps and Lists; for reading directly or wrapping in org.json objects.","archived":false,"fork":false,"pushed_at":"2023-01-03T14:10:15.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-06T14:21:45.179Z","etag":null,"topics":["java","json5","json5-parser"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimblackler.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":"2020-10-15T17:51:51.000Z","updated_at":"2023-01-03T14:10:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"25d15e6c-4a76-4c11-9b2b-5cdaf71ef4fa","html_url":"https://github.com/jimblackler/usejson","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimblackler%2Fusejson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimblackler%2Fusejson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimblackler%2Fusejson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimblackler%2Fusejson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimblackler","download_url":"https://codeload.github.com/jimblackler/usejson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450425,"owners_count":20779406,"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","json5","json5-parser"],"created_at":"2024-12-13T11:27:10.722Z","updated_at":"2025-03-31T09:44:46.332Z","avatar_url":"https://github.com/jimblackler.png","language":"Java","readme":"## usejson\n\nA Java library that parses JSON5 or JSON format into an ordinary tree of Java\nobjects (using types `Map\u003c\u003e` for dictionaries, and type `List\u003c\u003e` for arrays).\n\nIt is live on JitPack.\n[![](https://jitpack.io/v/net.jimblackler/usejson.svg)](https://jitpack.io/#net.jimblackler/usejson)\n \nAn online demonstration [is here](https://tryjsonschematypes.appspot.com/#json5);\nit shows the library being used to convert JSON5 objects to plain JSON.\n\nThe parser is ported from the reference JavaScript JSON5 parser;\n[json5](https://github.com/json5/json5). \n \nParser output is compatible with `org.json.JSONObject.wrap`, allowing output to\nbe easily converted into `org.json` objects. This allows JSON5 files to be used\nin applications written for `org.json` types; allowing comments, unquoted keys,\nsingle quoted strings, line continuation in strings, hex numbers and more.\n\nThe library is written by [Jim Blackler](mailto:jimblackler@gmail.com) and\noffered under the Apache 2.0 license.\n\n## Conversion of output to `org.json` types\n\n`org.json` objects are able to contain data parsed from JSON5 files with the\nfollowing exception:\n\nAs JSON5 is a superset of JSON, classic JSON files can also be read. However,\nthis importer differs from `org.json` in the following ways:\n\n* Duplicate keys are permitted. The final instance of that key will take\n  priority.\n* Empty array entries (i.e. no content followed by a comma, such as `[,]`) are\n  invalid.\n\nWhen adapted to `org.json` tyoes using `JSONObject.wrap`:\n\n* `Infinity` and `NaN` values will cause an error to be thrown.\n* Values of type `null` are lost.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimblackler%2Fusejson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimblackler%2Fusejson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimblackler%2Fusejson/lists"}