passing json to the success and failure blocks in the update callback