
“A motion for judgment on the pleadings serves the same purpose as a general demurrer and a special demurrer for lack of jurisdiction pursuant to Code Civ. Proc. § 430.10(a). Code Civ. Proc. § 438(c). ‘A motion for judgment on the pleadings performs the same function as a general demurrer, and hence attacks only defects disclosed on the face of the pleadings or by matters that can be judicially noticed.'”
[California Summary Judgment & Related Termination Motions [certain citations omitted]]