fix issue with json output for single dimension array #69