convert $().data('someKey') to a json object if possible.

the `data()` api is now using `attr()` internally, without any convertion, so it would be better to convert result to a json object if it is a legal json string.
Merge pull request #514 from LeoYuan/patch-1

convert $().data('someKey') to a json object if possible.