SetBytes with string slice as value is escaped
arigon opened this issue · comments
Hello
I want to set a string slice as a value with SetBytes. Unfortunately the JSON marshaler seems to escape the quotes:
{"data": "[\"test1\"]"}
How can I prevent this?
The expected result would be:
{"data": ["test1"]}
Oh, I found the error. I was trying to add value.String() in a previous step. Adding the slice works fine.