Stringify item to JSON before assigning to data-value