remove redirect replace with json