fork download
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3.  
  4. const base64Data =
  5. "HC4lbpOlNdeINW5ONNQyUSRMQvwnfXCzVKA1wR9V1qr0gku86vGyNcnCZQ7+MrUS1aLKl6a9BXvcPmCH4wFGsCTQ9jPxkIh4riQt0VfXHi4QxkuREJGkQA6CBtQ09ebiHR9rrWMetBCTx4yYcXFfAwIrcS6LzzMP5/FcBUaRQFBpPgFfA+lPjKcB4rZ4YonVwecSp7B5ceqAvtnhnlNk/z+ng2fe8w+dIu9BmrVaR0y4K604EGYiJh1BryxQ9ZUVE9VFw39HEsW9/tCqPHRV5noog/0GWY5h8kYEU3fn85kJU1qVg08qcNfOnfnEq7pvAzhv/RpcmVLxttJpSPBeN1E4fHsqHQeDtqLI3hJ3mqXPFQft+h8Qgfwgi87GgfFBiI+BdqEHKRiNUbasd4izFvBRxHvCqQNAW0MZ7OHjfdv0xPLrzLnnWjacHipYpd5y9MSxKJlP6rxUusqXuCtaYtSuTV0ScTrFdCozvJcp2wprYv3cD1AfjpDxY4Ly7FWqhOAzVjbPwUVH8wLR+Z0JYfb200rjTaDqw0ZrPTyoZnCIzVIJF/AazxrbAxML51r8IOnpZcV7NPWPPp2RF4LDILMiXAUqDJkccDLjD75iLZHm7orMGqMRhabF0zaX5XbozmPpVEsQkIdAJyiQNJP31ondrIcPf9Uu8972NDBFwVc=";
  6.  
  7. // Function to convert Base64 to JSON
  8. function convertBase64ToJson() {
  9. try {
  10. const decodedString = atob(base64Data);
  11.  
  12. // Log the decoded string with formatting
  13. console.log("Decoded String:\n\n" + decodedString);
  14.  
  15. // Optionally, log the length of the decoded string for verification
  16. console.log("Decoded String Length:", decodedString.length);
  17. } catch (error) {
  18. console.error("Error decoding Base64:", error);
  19. console.error("Base64 Data:", base64Data);
  20. console.error("Base64 Data Length:", base64Data.length);
  21. }
  22. }
Success #stdin #stdout 0.35s 42524KB
stdin
Standard input is empty
stdout
Standard output is empty