completes JSON iteration, adds callbacks to control flow