Encodes maps into object
Merge pull request #19 from jerp/parser-decoder-decoupling

Encodes maps into object