JSON Formatter for encryption/decryption