"This phrase (in full, opinio juris sive necessitates ) connotes an element in the formation of international custom, expressed in art. 38(1)(b) of the I.C.J. Statute as ‘a general practice accepted as law’. ‘It is not sufficient to show that States follow habitually a certain course of conduct, either doing or not doing something. To prove the existence of a rule of international customary law, it is necessary to establish that States act in this way because they recognize a legal obligation to this effect’: Schwarzenberger and Brown, A Manual of International Law (6th ed.), 26." - Grant, John P., et al.
"The two constituent elements in customary international law are state practice and opinio juris sive necessitates , or opinio juris . These elements are expressly stated in article 38, paragraph 1, subparagraph b, of the Statute of the International Court of Justice and have been widely accepted by international judicial bodies. The Court referred to these elements in numerous cases...
Opinio juris is traditionally derived from state’s opinions, but exactly how a state expresses its opinion in relation to an act that is or is not in accordance with the rule alleged to be international law is not always clear. On the one hand, such manifestations of opinion might come from the statements of senior state officials or the official statements of states in an international body such as the United Nations General Assembly. On the other hand, statements of opinio juris might be the result of widely supported resolutions, especially one such as the Declaration on Principles of International Law concerning Friendly Relations and Cooperation among States in Accordance with the Charter of the United Nations (UNGA Res. 2625 (XXV) adopted 24 October 1970), which expressly states it is recognizing principles of international law. Evidence of opinio juris might include diplomatic pronouncements, votes, or other such expression of views by states. Some terms recognized by the International Court of Justice as expressing more than an opinio simpliciter include “ recognition ,” “conviction,” “sense of duty,” and “consciousness,” according to O. Elias, “The Nature of the Subjective Element in Customary International Law,” ICLQ 44, no. 3 (July 1995): 501, 511. It is important that the expression of opinio juris be directed toward an act and concern a sense of legal obligation for it to contribute to forming customary international law." - Doebbler, Curtis F. J.