ascent.decode
Decoding methods for data in Ascent
Ascent.decode - Data Decoding Methods
Apica.decode.base64
decodes a string in Base64 format.
ascent.decode.b64(input:string):string;Parameter
Type
Description
string
string
Value to decode
Examples
To base64-encode the username
Event.decode = Ascent.decode.b64("Username")Ascent.decode.gzip
Compress a string using Gzip. Output a base64 encode string
ascent.decode.gzip(input: string): string;Parameter
Type
Description
string
string
Value to encode
Examples
To encode the username
Event.decode = Ascent.decode.b64("Username");Ascent.decode.uri
Encodes a string using URI encoding
Parameter
Type
Description
string
string
Value to encode
Examples
To decode the username
decodes a string in Hexadecimal format.
Parameter
Type
Description
string
string
Value to encode
Examples
To decode the username
Ascent.decode.unflatten
Transforms a flattened object into a nested JSON structure. Useful for reconstructing nested data models from flat key-value mappings.
Parameter
Type
Description
input
{}<string, any>
Flattened key-value object
Examples Unflatten a flattened object:
Last updated
Was this helpful?