Get key/value pairs as arrays