{"id":49520812,"url":"https://github.com/makes/json-rm","last_synced_at":"2026-05-01T23:31:02.406Z","repository":{"id":205954618,"uuid":"714615606","full_name":"makes/json-rm","owner":"makes","description":"Parse JSON Schemas into relational model and transpile into other textual representations.","archived":false,"fork":false,"pushed_at":"2023-11-16T00:55:57.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-13T15:04:29.024Z","etag":null,"topics":["json","json-schema","postgres"],"latest_commit_sha":null,"homepage":"","language":"Python","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/makes.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,"zenodo":null}},"created_at":"2023-11-05T11:56:34.000Z","updated_at":"2025-09-05T08:07:53.000Z","dependencies_parsed_at":"2023-11-07T18:04:59.893Z","dependency_job_id":"8b215023-bc87-476a-b3bf-939abdf64bcc","html_url":"https://github.com/makes/json-rm","commit_stats":null,"previous_names":["makes/yayson","makes/json-rm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/makes/json-rm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makes%2Fjson-rm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makes%2Fjson-rm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makes%2Fjson-rm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makes%2Fjson-rm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makes","download_url":"https://codeload.github.com/makes/json-rm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makes%2Fjson-rm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32105868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["json","json-schema","postgres"],"created_at":"2026-05-01T23:31:01.001Z","updated_at":"2026-05-01T23:31:02.391Z","avatar_url":"https://github.com/makes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"json-rm\r\n=======\r\n\r\nThis tool parses a JSON Schema into \"Entities\" and \"Attributes\", which correspond to tables and columns in a relational database. It can be used to output different representations of the data model described by the input schema.\r\n\r\n## Installation\r\n\r\n```\r\npip install json-rm\r\n```\r\n\r\n## Command line usage\r\n\r\n```\r\njst \u003ccommand\u003e \u003cschema_path\u003e\r\n```\r\n\r\n### Examples\r\n\r\nUse the 'simple' formatter on a schema:\r\n\r\n```\r\n$ jst simple resources/schemas/1.2.246.537.6.1506.7000.2022.1.10.json\r\n```\r\n\r\nUse the 'postgres' formatter on a schema:\r\n\r\n```\r\n$ jst postgres resources/schemas/1.2.246.537.6.1506.7000.2022.1.10.json\r\n```\r\n\r\n## Using from your Python code\r\n\r\n```\r\nimport json_rm\r\nfrom json_rm.formatters import SimpleFormatter\r\n\r\nschema = json_rm.JSONSchema.from_file(\"schema.json\")\r\nformatter = SimpleFormatter()\r\n\r\nprint(schema.render(formatter))\r\n```\r\n\r\n## Parsing options\r\n\r\n### normalization\r\n\r\n- Denormalized (default) mode results in a flat structure with less tables.\r\n- Normalized mode results in a deep structure with more tables.\r\n\r\nWhen `normalization` is set to `False` (default), the parser operates in \"denormalized\" mode, creating a new `Entity` only for the root object and repeating (`array`) objects. In the \"normalized mode, a separate `Entity` is created for each nested structure (JSON objects and arrays).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakes%2Fjson-rm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakes%2Fjson-rm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakes%2Fjson-rm/lists"}