Convert HTML Table Into JSON With jQuery - Table2Json
File Size: | 5.95 KB |
---|---|
Views Total: | 17167 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
A minimalist jQuery based Table To JSON converter that allows you to serialize tabular data into JSON objects.
How to use it:
1. Load jQuery library and the minified version of the jQuery Table2Json plugin at the end of the html page.
<script src="//code.jquery.com/jquery.min.js"></script> <script src='js/TableToJson.min.js'></script>
2. Convert your tabular data into JavaScript values:
makeJsonFromTable('tableIDToConvert')
3. Convert JavaScript values to JSON objects:
JSON.stringify(makeJsonFromTable('tableToConvert'))
This awesome jQuery plugin is developed by Praveent696. For more Advanced Usages, please check the demo page or visit the official website.