✅ How to serialize IEnumerable<T> to json?
I have following:
and I want to get following:
"
{
"Key": "GetValueBytes()",
...
}
"
how can I do it?
and I want to get following:
"
{
"Key": "GetValueBytes()",
...
}
"
how can I do it?
IEnumerable<byte> will be serialized into a json array of numbers,byte[] will result in a base64 encoded string,Headers as IReadOnlyDictionary<string, byte[]>"header1": "base64-encoded-byte-array", while "header1": "1,254,4,6,127"
hm maybe I can do smth like.. 