to json values before setting as data attributes
Merge pull request #2 from weilu/to-json-data-attribute-values

to json values before setting as data attributes