update json referencei in index