Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brandon689/htmltojsonconverterweb

HTML to JSON Converter: A web tool that transforms HTML into structured JSON with customizable parsing options. Built with ASP.NET Core MVC.
https://github.com/brandon689/htmltojsonconverterweb

anglesharp asp-net asp-net-core asp-net-mvc azure html html-to-json json json-converter newtonsoft-json

Last synced: about 1 month ago
JSON representation

HTML to JSON Converter: A web tool that transforms HTML into structured JSON with customizable parsing options. Built with ASP.NET Core MVC.

Awesome Lists containing this project

README

        

# HTML to JSON Converter 🔄

A web-based tool to convert HTML into JSON format with various parsing options.

## 🌎 Live Website

Visit our free live converter: [HTML to JSON Converter](https://htmltojsonconverter.azurewebsites.net/)

Try it out now! Convert your HTML to JSON with just a few clicks.

## 🌟 Features

- Convert HTML to JSON with multiple parsing modes:
- Generic
- Table
- JSON-LD
- Customizable conversion options:
- Attribute prefix
- Text property name
- New line conversion
- Indentation
- JSON unescaping
- Word trimming
- Table conversion

## 🚀 Getting Started

### Prerequisites

- .NET 6.0 SDK or later
- Visual Studio 2022 or Visual Studio Code

### Installation

1. Clone the repository
```git clone https://github.com/yourusername/html-to-json-converter.git```
2. Open the solution in Visual Studio or the folder in VS Code
3. Restore NuGet packages
4. Build the solution

### Running the Application

- In Visual Studio: Press F5 or click "Run"
- In VS Code: Use the integrated terminal to run `dotnet run`

## 🖥️ Usage

1. Enter your HTML in the input box
2. Select your desired parsing options
3. Click "Convert"
4. View the JSON output in the result box

## 🛠️ Technologies Used

- ASP.NET Core MVC
- C#
- HTML/CSS
- JavaScript
- Bootstrap

## 📚 Libraries

- AngleSharp: For HTML parsing
- Newtonsoft.Json: For JSON manipulation

## 🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check [issues page](https://github.com/yourusername/html-to-json-converter/issues).

## 📝 License

This project is [MIT](https://choosealicense.com/licenses/mit/) licensed.

## 👏 Acknowledgements

- [AngleSharp](https://github.com/AngleSharp/AngleSharp)
- [Newtonsoft.Json](https://www.newtonsoft.com/json)
- [Bootstrap](https://getbootstrap.com/)