portify/bl-utils — pull request #2 by clockler (2013-12-24 00:25:55+00:00)
Title: jettison.cs fixes and features

Added `string dumpJSON(* data)` - `json.stringify`, really
Added `bool saveJSON(* data, string filename[, FileObject fo])` - helper function to avoid filesystem boilerplate, returns `true` if file was written and `false` otherwise
Added `* loadJSON(string filename[, string defaultStruct][, FileObject fo])` - helper function to avoid filesystem boilerplate, returns same as `parseJSON`
Fixed syntax errors (semicolons improperly placed when using `eval`)
Fixed inconsistent behavior involving keys starting with numbers - keys not accessible via properties (`x.3n` throws a syntax error, and as such the value is inaccessible) are now discarded. Such is life when working with Torque. This may result in blank hashes and other strangeness, please treat your JSON better if you are having problems.