Hi everyone,
Because I can only put string values in metadata, I’d like to use "" to represent empty list and use "foo, bar" to represent ["foo", "bar"]. Then I got null after tus server decoded them.
I checked the implementation.
const decodedValue = value ? Buffer.from(value, 'base64').toString('utf8') : null
So it can’t handle "". Every false value will become null.
I can handle null and comma separated values in my own application. But I am also wondering if there is a better way to encode and decode metadata and keep original values at the same time?