added option to have data not be encoded by json