How to convert an element css to JSON? <p>I let my users to change any attribute(location, color, and ...) of every element in a page before printing.</p> <p>I'm looking for a way which user can store the new style sheet and restore it anytime later?</p> <p>I've tried to parse <code>element.style</code>, but it doesn't return an array! Also <code>$(element).css()</code> doesn't work without any argument! </p>