fix Buff obj to string to json