add .toJSON()
Merge pull request #466 from visionmedia/add/to-json

add .toJSON()