Added support for json documents that start with an array at the top level