add array as json document example