Get list of pairs from keyvalues.