Updated json checking.

- adapted to SJCL changed
- added entropy checking (from
https://github.com/vikstrous/ZeroBin/commit/f2ee2e8ba2f9c4cb1f16e81554c104109e202f24)