add toJson templating function
v0.1.1
Merge pull request #2 from Clever/toJson-for-mongo-docs

add toJson templating function