change JSON to data attribute