HTML to JSON Converter
Converted on ToolSlick's server. Your input and its output are not stored.
Settings
How the input is converted. Each is explained below.
History
- 2019-03-16Handle HTML encoded values
- 2018-05-26Automatic input detection
- 2018-05-26Support for JSON-LD
- 2018-05-15Generic HTML Conversion Support
- 2017-09-27Tool Launched
Settings explained
- Mode
- How the HTML is read: Auto works it out; Table takes its tables; Generic turns every element into JSON; JSON-LD takes its linked data; Facebook Contacts and List read those pages.
- Attribute Prefix
- The prefix of the properties HTML attributes become, in the Generic mode. Set blank for none.
- Text Property Name
- The property that holds an element's text, in the Generic mode.
- Unescape Json
- HTML pasted as a JSON string, quotes and escapes included, is unescaped before it is read.
Background
HTML is the language of the internet. It is what creates HTML pages (even this one). In the old days, HTML used to be static with some JavaScript added into the mix for dynamic behavior and effects. Then HTML was served dynamically from the server side with the advent of server side programming languages such as PERL, PHP, ASP. And now there is a new trend where HTML is again being served as static resources with JSON (from REST web services) and JavaScript making it dynamic.
JavaScript Object Notation (JSON), pronounced as Jason, is the most common data interchange format on the web. Douglas Crockford first released the JSON specification in the early 2000s. It is a simple format that is easier to comprehend than XML. It is also smaller in size because it does not have closing tags. A wide variety of programming languages can parse JSON files. They also support the serialization of data structures to JSON. You can copy JSON text to JavaScript and start using them without any modifications.