Utility to get key-value pairs from an object