Handle JSON graph references