In JavaScript, I used follow code to make Base64 String from Json object
let inputJson = { ... } let objJsonStr = JSON.stringify(inputJson); let objJsonB64 = Buf