Implement parsing of key-value pairs