emancu/toml-rb

:symbolize_keys parser option does not work properly for Array of Tables

Closed this issue · 1 comments

There is a way to define Arrays of Tables in TOML
The :symbolize_keys parser option works for tables inside the array, but not for the outer key.
Parsing the example from TOML readme produces:

{"products"=>
  [{:name=>"Hammer", :sku=>738594937}, {}, {:name=>"Nail", :sku=>284758393, :color=>"gray"}]}

while the expected result is:

{:products=>
  [{:name=>"Hammer", :sku=>738594937}, {}, {:name=>"Nail", :sku=>284758393, :color=>"gray"}]}

Thanks for reporting this issue.
I am a little busy this week, but I will take a look next week for sure!