fix json parse bug when array is empty