update index with json