Fix TaskObserver for json endpoint usage