{"id":15713703,"url":"https://github.com/molnarmark/jsontocr","last_synced_at":"2025-06-13T09:07:46.710Z","repository":{"id":57286059,"uuid":"174881146","full_name":"molnarmark/jsontocr","owner":"molnarmark","description":"🔮 JSON to Crystal JSON Mappings Converter","archived":false,"fork":false,"pushed_at":"2019-03-12T19:35:13.000Z","size":10,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-12T22:55:27.597Z","etag":null,"topics":["crystal","crystal-lang","crystal-language","json","types"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/molnarmark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-10T21:08:19.000Z","updated_at":"2022-10-12T23:28:29.000Z","dependencies_parsed_at":"2022-08-29T09:42:42.847Z","dependency_job_id":null,"html_url":"https://github.com/molnarmark/jsontocr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fjsontocr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fjsontocr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fjsontocr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/molnarmark%2Fjsontocr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/molnarmark","download_url":"https://codeload.github.com/molnarmark/jsontocr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253837400,"owners_count":21971982,"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":["crystal","crystal-lang","crystal-language","json","types"],"created_at":"2024-10-03T21:32:59.658Z","updated_at":"2025-05-12T22:55:32.594Z","avatar_url":"https://github.com/molnarmark.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON To Crystal\n\nGenerate Crystal JSON mappings from JSON files. Outputs to STDOUT.\n\n## Usage\n\n```\nnpx jsontocr test.json \u003e types.cr\n```\n\n## Examples\n\nTake this JSON for example:\n\n```json\n{\n  \"userId\": 1,\n  \"id\": 1,\n  \"title\": \"sunt aut facere repellat provident occaecati excepturi optio reprehenderit\",\n  \"body\": \"quia et suscipit\\nsuscipit recusandae consequuntur expedita et cum\\nreprehenderit molestiae ut ut quas totam\\nnostrum rerum est autem sunt rem eveniet architecto\"\n}\n```\n\nGenerated output will look like this:\n\n```crystal\nrequire \"json\"\n\nclass Root\n  JSON.mapping(\n    userId: {type: Float64, nilable: true},\n    id: {type: Float64, nilable: true},\n    title: {type: String, nilable: true},\n    body: {type: String, nilable: true},\n  )\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolnarmark%2Fjsontocr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmolnarmark%2Fjsontocr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmolnarmark%2Fjsontocr/lists"}