i think it should behave like maybe_add_resource_id and call wh_json:set_values to set the values on the cumulative JObj