ees are merely incidental to the achievement of that purpose. Such incidental private benefit is permissible under our cases.
[Ibid, (citation omitted).]
In City of Bayonne v. Palmer, 47 N.J. 520, 522-30, 221 A.2d 741 (1966), the Court accepted and applied a related rule of law; namely, that an agreement violates the constitutional article cited above if it involves the transfer of public funds to a private entity but is unsupported by consideration flowing to the governmental entity. Or, as we put it in City of East Orange v. Board of Water Commissioners, 79 N.J.Super. 363, 371, 191 A.2d 749 (App.Div.), aff'd on other grounds, 41 N.J. 6, 194 A.2d 459 (1963), “[i]t is settled that the receipt of a grossly insufficient benefit by a municipality will not prevent a substantial donation by the public from being considered an unconstitutional gift.”
Defendants concede that given the procedural posture of this case, dismissal of the complaint for failure to state a claim, our review is governed by these principles: we must search the complaint
“in depth and with liberality to ascertain whether the fundament of a cause of action may be gleaned even from an obscure statement of claim, opportunity being given to amend if necessary.” At this preliminary stage of the litigation [a][e]ourt [should not be] concerned with the ability of plaintiffs to prove the allegation contained in the complaint ... [Plaintiffs are entitled to every reasonable inference of fact. The examination of a complaint’s allegations of fact required by the aforestated principles should be one that is at once painstaking and undertaken with a generous and hospitable approach.
[Printing Mart-Morristown v. Sharp Elecs. Corp., 116 N.J. 739, 746, 563 A.2d 31 (1989) (quoting Di Cristofaro v. Laurel Grove Mem. Park, 43 N.J.Super. 244, 252, 128 A.2d 281 (App.Div.1957)) (citations omitted).]
And plaintiffs properly concede that at this procedural stage, our consideration of the documents referred to in the complaint, such as the LOA, the promissory note, and the supplemental agreement, is proper and does not convert defendants’ R. 4:6-2(e) motions into motions for summary judgment. See, e.g., In re Burlington Coat Factory Sec. Litig., 114 F.3d 1410, 1426 (3d Cir.1997). Both sides agreed at oral argument that our decision must be based solely on the complaint and the documents to which it referred.