Support added for setting a default json either via xhr or via a js object literal.