config: fix error when json config starts with an array