added test for send array as json