finish reformatting the json, index the new json properly