handle special case of data that is JSON