Encodes JSON, Arrays or Objects to CSV