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.