Use valid json for data preview attr.