Implement JSON encoding
Created by: shreyasbharath
I have just started using your library (great, easy-to-use library by the way!) and I was wondering if it would be possible to implement JSON encoding as well.
At the moment, we have to hand-code outbound JSON (which is slightly painful and error-prone).