add response.Json function and redesign code