Fixed a couple json-encode bugs. Added json-decode-into.