{"id":31513892,"url":"https://github.com/stefonalfaro/Angular-JSON-Tree-Editor-Component","last_synced_at":"2025-10-03T02:03:39.905Z","repository":{"id":313577450,"uuid":"1051907575","full_name":"stefonalfaro/Angular-JSON-Tree-Editor-Component","owner":"stefonalfaro","description":"Angular JSON Tree Editor Component that actually works","archived":false,"fork":false,"pushed_at":"2025-09-07T01:27:40.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-07T03:27:17.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/stefonalfaro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-07T01:19:33.000Z","updated_at":"2025-09-07T01:27:43.000Z","dependencies_parsed_at":"2025-09-07T03:37:32.727Z","dependency_job_id":null,"html_url":"https://github.com/stefonalfaro/Angular-JSON-Tree-Editor-Component","commit_stats":null,"previous_names":["stefonalfaro/angular-json-tree-editor-component"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/stefonalfaro/Angular-JSON-Tree-Editor-Component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefonalfaro%2FAngular-JSON-Tree-Editor-Component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefonalfaro%2FAngular-JSON-Tree-Editor-Component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefonalfaro%2FAngular-JSON-Tree-Editor-Component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefonalfaro%2FAngular-JSON-Tree-Editor-Component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefonalfaro","download_url":"https://codeload.github.com/stefonalfaro/Angular-JSON-Tree-Editor-Component/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefonalfaro%2FAngular-JSON-Tree-Editor-Component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278100044,"owners_count":25929782,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"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":[],"created_at":"2025-10-03T02:01:00.502Z","updated_at":"2025-10-03T02:03:39.899Z","avatar_url":"https://github.com/stefonalfaro.png","language":"TypeScript","readme":"# Angular-JSON-Tree-Editor-Component\nThis does not exist and the packages on NPM are have bugs, don't work, have no documentation, or only for React. Therefore I decided to make my own component that actually works.\n\n\u003cimg width=\"571\" height=\"375\" alt=\"image\" src=\"https://github.com/user-attachments/assets/84de4a98-8724-4130-80ab-7bcc1061da83\" /\u003e\n\n\n## How to use\n``\u003capp-json-editor *ngIf=\"Data\" [jsonData]=\"Data | jsonParse\" (jsonChange)=\"jsonDataChange($event)\"\u003e\u003c/app-json-editor\u003e``\n\nSo in the parent component you can get changes via\n```\njsonDataChange(data:any){\n  console.debug(`Data Changed ${data}`);\n  console.debug(`Data Changed:`, JSON.stringify(data, null, 2));\n}\n```\n\n\u003cimg width=\"214\" height=\"138\" alt=\"image\" src=\"https://github.com/user-attachments/assets/315065ae-e91a-4320-a24f-bfa049e1fef7\" /\u003e\n\n\n### Automatic Changes to Save\nThis is disabled by default but you can just set this to true, then anytime you make a change it will output. Normally you need to click the Save button.\n``@Input() autoUpdate:boolean = false;``\n\n### jsonParse Pipe\nThis may or not be needed depending on how your data is structured but even when I am editing JSON in a plain textbox before I had this component I still had to prepare my data since I am reading from a SQL Server column.\n```\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n  name: 'jsonParse'\n})\nexport class JsonParsePipe implements PipeTransform {\n\n  transform(value: string): any {\n    try {\n      return JSON.parse(value);\n    } \n    catch (e) {\n      return value;\n    }\n  }\n}\n```\n","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Editors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefonalfaro%2FAngular-JSON-Tree-Editor-Component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefonalfaro%2FAngular-JSON-Tree-Editor-Component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefonalfaro%2FAngular-JSON-Tree-Editor-Component/lists"}