pub(super) fn set_thread_latest( root: CanonicalJsonObject, latest: Option<CanonicalJsonValue>, ) -> CanonicalJsonObject