update json. add deprecated logic.