Generate and parse key/value pairs