Allow 0, false, and null as json body #686 
Allow 0, false, and null as json body #686 

0, false, and null are all valid body contents of a request, however currently only an empty body is returned in these cases.

For Example:
response.json(200, true);
- currently returns:
200 OK
true

- however false doesn't return a body:
response.json(200, false);
200 OK


Change allows false to also return:
response.json(200, false);
200 OK
false
gergelyke/node-restify,micahr/node-restify,hekike/node-restify,trentm/node-restify,joyent/node-restify,mcavage/node-restify,restify/node-restify,mboudreau/node-restify,tempbottle/node-restify,jmealo/node-restify,ernestopino/node-restify,myroid/node-restify,myroid/node-restify,meleslilijing/node-restify,andyburke/node-restify,kusor/node-restify,liurq/node-restify,eetuuuu/node-restify,heiparta/node-restify,mauricionr/node-restify,BryanDonovan/node-restify,alex-zhang/node-restify,sean3z/node-restify,restify/plugins,gcochard/node-restify,restify/node-restify,KenanSulayman/node-restify,jameswomack/node-restify,rogervaas/node-restify