medicast/truevaultjs — pull request #1 by Fluidbyte (2014-05-28 01:08:19+00:00)
Title: Added check before forcing JSON.stringify

When starting with the module I was passing already `stringify`'d data through and only getting a `400` code error returned. I realized my issue after a few minutes, however, I could see this being an issue for others.

The changes simply add a check before running `JSON.stringify()` in the `base64Encode` method.