CXX-264 merge SERVER-14357 from upstream

SERVER-14357: Add support for top level JSON Array