stringify data for REST