Fix JSON cyclic problem