Added wrapper for convert array to json