# Unmarshal TOML parser dictionaries

**URL:** <https://discourse.julialang.org/t/unmarshal-toml-parser-dictionaries/18074>\
**Category:** General Usage\
**Created:** [November 27, 2018, 6:27pm UTC](https://discourse.julialang.org/t/unmarshal-toml-parser-dictionaries/18074 "2018-11-27T18:27:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkretlow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkretlow/32/16295_2.png) [@mkretlow](https://discourse.julialang.org/u/mkretlow)\
**Post date:** [November 27, 2018, 6:27pm UTC](https://discourse.julialang.org/t/unmarshal-toml-parser-dictionaries/18074/1 "2018-11-27T18:27:55Z")

</div>

Is there a easy way (or a package I am not aware of) to unmarshal dictionaries provided from the TOML parser [https://github.com/wildart/TOML.jl](https://github.com/wildart/TOML.jl) into Julia types (struct) ?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [November 27, 2018, 6:31pm UTC](https://discourse.julialang.org/t/unmarshal-toml-parser-dictionaries/18074/2 "2018-11-27T18:31:01Z")

</div>

[https://github.com/lwabeke/Unmarshal.jl](https://github.com/lwabeke/Unmarshal.jl) maybe (the original file format doesn’t really matter since the parsed result is used).

---

<div class="post-metadata">

**Author:** ![mkretlow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkretlow/32/16295_2.png) [@mkretlow](https://discourse.julialang.org/u/mkretlow)\
**Post date:** [November 27, 2018, 8:58pm UTC](https://discourse.julialang.org/t/unmarshal-toml-parser-dictionaries/18074/3 "2018-11-27T20:58:42Z")

</div>

Seems to work with TOML after a first quick check. Thanks!

---

<div class="post-metadata">

**Author:** ![lwabeke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lwabeke/32/4005_2.png) [@lwabeke](https://discourse.julialang.org/u/lwabeke)\
**Post date:** [November 28, 2018, 6:40am UTC](https://discourse.julialang.org/t/unmarshal-toml-parser-dictionaries/18074/4 "2018-11-28T06:40:29Z")

</div>

It was/is always my intention to expand and test support for other syntax formats. I just have not had a chance to get around to it.

If you are using it with something other than the JSON.jl package, I would be interested in a PR to increase the test cases to help ensure that any future changes doesn’t break existing working integration.  
And/or highlighting problem cases where the integration doesn’t work.
