Div2Json plug-in generate json data from div elements.To generate user need to define and level. So far key Duplication not supported. It currently supports controls like text-box,check-box,select. I am working on enhancements.
To use plugin, you need to add attribute "datalevel" to element.
<input type="text" datalevel="level-levelname" value="test" />
{
level:{
levelname:"test"
}
}
<select>
<option datalevel="level-select">Value 1</option>
<option datalevel="level-select">Value 2</option>
<option datalevel="level-select">Value 3</option>
</select>
{
"level": {
"select": "Value 1"
}
}