Support array as root element in JSON