protecting json server against bad requests
Merge pull request #6 from soumith/master

protecting json server against bad requests