ozataman/snap-extras — pull request #3 by alexanderkjeldaas (2013-02-20 14:31:01+00:00)
Title: Add by-default CSRF-protection to writeJSON

Added two extra functions, writeJSONWrapped, and writeJSONUnprotected.
The original writeJSON is renamed to writeJSONUnprotected
writeJSON prefixes with ")]}',\n" which is stripped away by AngularJS
by default.
writeJSONWrapped can wrap with a specific wrapper