config: fix error when json config starts with an array
Merge pull request #644 from chrisport/develop

config: fix error when json config starts with an array