{"id":25590666,"url":"https://github.com/kekland/mirror_json","last_synced_at":"2026-06-29T11:31:39.502Z","repository":{"id":56834740,"uuid":"178229860","full_name":"kekland/mirror_json","owner":"kekland","description":"A JSON parser library for Dart that uses dart:mirrors.","archived":false,"fork":false,"pushed_at":"2019-03-31T07:32:55.000Z","size":6405,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-09T04:07:16.525Z","etag":null,"topics":["dart","dartlang","json"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kekland.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-28T15:17:53.000Z","updated_at":"2019-09-09T05:44:40.000Z","dependencies_parsed_at":"2022-09-02T03:50:19.355Z","dependency_job_id":null,"html_url":"https://github.com/kekland/mirror_json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kekland/mirror_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kekland%2Fmirror_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kekland%2Fmirror_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kekland%2Fmirror_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kekland%2Fmirror_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kekland","download_url":"https://codeload.github.com/kekland/mirror_json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kekland%2Fmirror_json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34925718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dart","dartlang","json"],"created_at":"2025-02-21T09:22:51.927Z","updated_at":"2026-06-29T11:31:39.484Z","avatar_url":"https://github.com/kekland.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨ mirror_json\n\n[![star this repo](https://githubbadges.com/star.svg?user=kekland\u0026repo=mirror_json\u0026style=flat)](https://github.com/kekland/mirror_json)\n[![fork this repo](https://githubbadges.com/fork.svg?user=kekland\u0026repo=mirror_json\u0026style=flat)](https://github.com/kekland/mirror_json/fork)\n![Build](https://img.shields.io/travis/kekland/mirror_json.svg)\n![Pub](https://img.shields.io/pub/v/mirror_json.svg)\n\nA **Dart** library for parsing JSON objects using `dart:mirrors`.\n\n**Important: This library does not work in Flutter.**\n\n## 🔨 Installation\n\nAdd [`mirror_json`](https://pub.dartlang.org/packages/mirror_json) to your dependencies.\n```yaml\ndependencies:\n    ...\n    mirror_json:\n```\n\nNow get the packages.\n```bash\npub get\n```\n\n## 🔮 Getting started\n\n`mirror_json` uses a concept of *Parsers*. There are a bunch of parsers for simple types (int, double, String) already in the package, but in order to parse a class, you have to make a `ClassParser` instance.\n\n```dart\nimport 'package:mirror_json/mirror_json.dart';\n\n@JsonParseable()\nclass MyClass {\n    ...\n}\n\nvoid main() {\n    GlobalJsonParserInstance.initialize();\n    var parser = ClassParser\u003cMyClass\u003e();\n\n    // From json\n    var myObject = Json.fromJson({...});\n\n    // To json\n    var json = Json.toJson(myObject);\n}\n```\n\nWoah, what just happened?\n\nFirst, we initialized `mirror_json`'s main class, `GlobalJsonParserInstance`. This automatically adds parsers for simple types like int, double, List, etc. Then, we created a parser for `MyClass`. Now you can use the `Json` class to transform your JSON objects to `MyClass` instances or `MyClass` objects to JSON.\n\n## 💡 Example\n\nSee example under `example` folder.\n\n## 📚 Docs\n\nSee docs [**here**](https://kekland.github.io/mirror_json)\n\n## 📭 Contact me\n\nE-Mail: **kk.erzhan@gmail.com**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkekland%2Fmirror_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkekland%2Fmirror_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkekland%2Fmirror_json/lists"}