1jQuery Metadata Plugin
2
3By John Resig
4
5This plugin is capable of silently, and automatically, extracting metadata
6from classes, random attributes, and child elements.
7
8For example, you can do:
9<li data="{some:'random', json: 'data'}">...</li>
10OR
11<li class="someclass {some: 'data'} anotherclass">...</li>
12OR
13<li><script type="data">{some:"json",data:true}</script> ...</li>
14
15The default is the first method, but you can always change it by twiddling
16the options. This means that there is at least one option here that can
17appease you.
18
19There's also a bunch of options (like loading data into a single property
20and the ability to ignore braces {}).
21