Perfect! A data- attribute can contain anything and it runbs perfectly. It can contain too a JSON-stringified object added into edit mode into a <span> (so that a while dictionary can be passed into a single data- attribute). It's just what I needed.
Alex brollo