Skip to content

This plug-in generate json data from div elements.Key Duplication not supported. Plugin supports controls like text-box,check-box,select. There are other enhancement on which i am currently working on

Notifications You must be signed in to change notification settings

taranglute/Div2Json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Div2Json

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.

How to use ?


To use plugin, you need to add attribute "datalevel" to element.

Example 1 - Working with Inputfield.

<input type="text" datalevel="level-levelname" value="test" />
Json Output
{
	level:{
		levelname:"test"
	}
}
Example 2 - Working with Selectoption

<select>
	<option datalevel="level-select">Value 1</option>
	<option datalevel="level-select">Value 2</option>
	<option datalevel="level-select">Value 3</option>
 </select>
Json Output
{ 
	"level": { 
		"select": "Value 1" 
	}
}	

About

This plug-in generate json data from div elements.Key Duplication not supported. Plugin supports controls like text-box,check-box,select. There are other enhancement on which i am currently working on

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published