Add an assertion to make sure that we always return a Json::objectValue.