{"id":21331921,"url":"https://github.com/brandon689/htmlconverter","last_synced_at":"2026-05-10T15:36:28.097Z","repository":{"id":245653175,"uuid":"818652236","full_name":"Brandon689/HTMLConverter","owner":"Brandon689","description":"HtmlToJsonParser: A versatile C# library for converting HTML to JSON with multiple parsing modes and customizable options.","archived":false,"fork":false,"pushed_at":"2024-06-23T06:46:15.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T13:51:28.931Z","etag":null,"topics":["anglesharp","converter","csharp","dotnet-core","html","html-parser","html-to-json","json","json-converter","parsing","web-development","web-tool"],"latest_commit_sha":null,"homepage":"https://htmltojsonconverter.azurewebsites.net/","language":"C#","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/Brandon689.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-06-22T13:04:07.000Z","updated_at":"2024-06-23T06:46:17.000Z","dependencies_parsed_at":"2024-06-23T07:05:07.220Z","dependency_job_id":null,"html_url":"https://github.com/Brandon689/HTMLConverter","commit_stats":null,"previous_names":["brandon689/htmlconverter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brandon689%2FHTMLConverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brandon689%2FHTMLConverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brandon689%2FHTMLConverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brandon689%2FHTMLConverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Brandon689","download_url":"https://codeload.github.com/Brandon689/HTMLConverter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809843,"owners_count":20351407,"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":["anglesharp","converter","csharp","dotnet-core","html","html-parser","html-to-json","json","json-converter","parsing","web-development","web-tool"],"created_at":"2024-11-21T22:45:08.033Z","updated_at":"2026-05-10T15:36:22.970Z","avatar_url":"https://github.com/Brandon689.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HtmlToJsonParser 🔄\n\nHtmlToJsonParser is a versatile C# library that converts HTML to JSON using various parsing modes and customizable options. It leverages AngleSharp for HTML parsing and provides flexible output formatting.\n\n## ✨ Features\n\n- Multiple parsing modes:\n  - Generic: Converts all HTML nodes to JSON\n  - Table: Converts HTML tables to structured JSON\n  - JSON-LD: Extracts JSON-LD data from HTML\n- Customizable options:\n  - New line conversion in values\n  - Attribute prefix customization\n  - Text property name customization\n  - Output indentation control\n  - JSON unescaping\n  - Inside word trimming\n  - Multiple table conversion\n\n## 🚀 Installation\n\nTo use HtmlToJsonParser in your project, you need to install the following NuGet packages:\n- Install-Package AngleSharp\n- Install-Package Newtonsoft.Json\n\n## 🔍 Parsing Modes\n\n### Generic Mode\n\nConverts all HTML nodes to JSON objects and properties.\n\n### Table Mode\n\nConverts HTML tables into a structured JSON format. Each row becomes a JSON object with column headers as keys.\n\n### JSON-LD Mode\n\nExtracts and parses JSON-LD data from HTML documents.\n\n## ⚙️ Options\n\n- `ValueNewLineConversion`: Specifies how to handle new lines in text values.\n- `AttributePrefix`: Sets the prefix for HTML attributes in the JSON output.\n- `TextPropertyName`: Defines the property name for text nodes.\n- `Indent`: Controls whether the output JSON is indented.\n- `UnescapeJson`: Attempts to unescape the input if it appears to be HTML wrapped in a JSON string.\n- `TrimInsideWords`: Trims multiple consecutive spaces inside words to a single space.\n- `ConvertAllTables`: Controls whether all tables or just the first one should be converted in Table mode.\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandon689%2Fhtmlconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandon689%2Fhtmlconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandon689%2Fhtmlconverter/lists"}