Support array as root element in json