Jquery validation options are not in JSON format so we cannot rely on json_encode because it surrounds string values by quotes.
Unit tests fixed
Merge pull request #1 from bramstroker/master

up