When I receive the response from server for one json object,then i want to send the next json object. I want to check the first object and send the second accordingly. How c