Return a json if array size is 1