Base64 ⇄ JSON Encoder/Decoder

Encode JSON to Base64, or decode Base64 back to JSON — direction is auto-detected.