Added the replace index inside the jsonElement.