DSO-299 support for encrypted json

- added auto key detection to .decrypt
- fixed issue where error would be thrown if encrypted value was not string