By the way, DAG-CBOR and dCBOR enforce sorted map keys*, in which case you always know the field order.
*maddeningly, with mutually incompatible sorting rules.