assert json returned