update index to use json