Methods that return/accept json objects

This version is that I am ready to use with my (developing) project p2prpc.
I desired some simple methods that return/accept json objects rather than strings. Json objects can be directly passed to or retrieved from `res.json` or `req.body.data` of express.

There are also some additional test cases.

Hope it is useful to you.