Closed arigon closed 2 years ago
Hello
I want to set a string slice as a value with SetBytes. Unfortunately the JSON marshaler seems to escape the quotes: {"data": "[\"test1\"]"}
{"data": "[\"test1\"]"}
How can I prevent this?
The expected result would be: {"data": ["test1"]}
{"data": ["test1"]}
Oh, I found the error. I was trying to add value.String() in a previous step. Adding the slice works fine.
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"]}