{"id":20755984,"url":"https://github.com/henryquan/json-become-ts","last_synced_at":"2026-04-11T00:02:50.750Z","repository":{"id":40289845,"uuid":"238167846","full_name":"HenryQuan/json-become-ts","owner":"HenryQuan","description":"JSON to TypeScript/Dart converter","archived":false,"fork":false,"pushed_at":"2023-03-04T05:55:23.000Z","size":1597,"stargazers_count":1,"open_issues_count":11,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T15:52:24.916Z","etag":null,"topics":["converter","dart","flutter","javascript","json","typescript","web"],"latest_commit_sha":null,"homepage":"https://json2ts.web.app","language":"Dart","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/HenryQuan.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-02-04T09:26:10.000Z","updated_at":"2023-11-01T03:41:59.000Z","dependencies_parsed_at":"2024-11-17T09:28:46.844Z","dependency_job_id":"530ee7d8-d12e-4c54-a8d6-d577fc4be393","html_url":"https://github.com/HenryQuan/json-become-ts","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/HenryQuan/json-become-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenryQuan%2Fjson-become-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenryQuan%2Fjson-become-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenryQuan%2Fjson-become-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenryQuan%2Fjson-become-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HenryQuan","download_url":"https://codeload.github.com/HenryQuan/json-become-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenryQuan%2Fjson-become-ts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260682455,"owners_count":23046058,"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":["converter","dart","flutter","javascript","json","typescript","web"],"created_at":"2024-11-17T09:28:23.489Z","updated_at":"2025-12-30T22:29:58.369Z","avatar_url":"https://github.com/HenryQuan.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON: Become TS\nWork in progress JSON to TypeScript converter.\n\n## About\nIt was called `json2ts` but others have used this name so I changed it to `JSON: Become TS`. Yes, the naming is inspired by a certain game. \n\nIt is another tool that I need for [WoWs Info](https://github.com/HenryQuan/WoWs-Info-Re). Other tools I found only generate everything in a single file and that's not what I want. Therefore, `JSON: Become TS` will help you to create files and directories automatically.\n\n### Dart support\nDart support has been added but it might need some manual adjustments due to the type `number` can be both `int` and `double`.\n\n### Features\n- Support `number`, `string`, `boolean`\n- Support `array` and auto detect `map`\n- Remove illegal characters\n\nThe next step is to support optional types. It might be possible with the help of [obj-join](https://github.com/HenryQuan/obj-join). After that, I will add the option to generate classes instead of interfaces. \n\n## Example\n- Check the [example](https://github.com/HenryQuan/json-become-ts/tree/master/src/example) folder to see what it does\n- Check the [modules](https://github.com/HenryQuan/json-become-ts/tree/master/src/example/modules) folder for dart\n\n### Special thanks\nCheckout [this website](https://next.json-generator.com/) for generating random json.\n\nFor legacy JS code, check them [here](https://github.com/HenryQuan/json-become-ts/tree/aeda8cbfdea101b1464e6ce987c3918346f04e51).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryquan%2Fjson-become-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenryquan%2Fjson-become-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryquan%2Fjson-become-ts/lists"}