array which contains json data should be also be converted to json