Converting JSON to Base 64

I have a API which needs the JSON Payload to be sent as Base64 encoded payload while making the API call. So I need to convert my JSON request payload should be converted to the Base64 Encoded Payload and Trigger the api call.

I couldn’t find a way to do it. If anyone has already done, Please let me know. Thanks

I think there is a base 64 plug-in. I’m on mobile now and can’t check myself, but that’s what I’ve used in the past.

Looking for the same solutiion. Anyone who could share the name of the plugin to convert JSON to Base64?

I just looked:

It’s called base64.