Function encodeJson

  • Encode a JSON object to a base64 string.

    Parameters

    • payload: any

      The JSON object to encode.

    Returns string

    A base64 encoded string.