Html data attributes are automatically encoded as JSON