Export only data when there aren't attributes

when attributes is empty DataFrame’s data isn’t export in ‘data’ json’s
attribute
Wrong place comma