Merges data attrs into one json data attr