fix limitation allowing json array as root of json document