We present a general protocol for stabilizer operator measurements in a system of N superconducting qubits. Using the dispersive coupling between the qubits and the field of a resonator as well as single qubit rotations, we show how to encode the parity of an arbitrary subset of M ≤ N qubits, onto two quasiorthogonal coherent states of the resonator. Together with a fast cavity readout, this enables the efficient measurement of arbitrary stabilizer operators without locality constraints.