Translate between associations, dictionaries and key value pairs