erichexter/twitter.bootstrap.mvc — pull request #59 by joshball (2013-01-28 15:50:18+00:00)
Title: Fixing invalid JSON when parsing empty attributes

Hey Eric,
I noticed that using the latest jQuery, the parsing throws an exception for empty attributes. Here is a fix. Thanks!

An empty string (or null object) is invalid JSON, and needs to be
converted to a 'null' string. jQuery 1.9.0 has exposed this previously
accepted JSON. Now we need to convert it.

http://forum.jquery.com/topic/parsejson-in-1-9-0-is-different-from-earlier-versions
Currently, if using jQuery 1.9.0, this code will throw an exception when
dealing with empty validation attributes.