convert all data-attr values with json.dumps. handles dicts and lists also. change all attribute value quotes to single quotes
change only data attribute value quotes to single quotes
in data-attributes, remove trailing and leading double quote for string-only types. tests.
+  Convert camelCase data attribute names into camel-case. Since jQuery 1.6 they
+  are automatically converted back to camelCase after calling .data().