problems marshaling null.Bytes
field containing uuid via json.Marshal
#1111
-
I have a MySQL table with a nullable binary field for optional foreign keys to an UUID field. When that field is populated with a valid binary value, calling json.Marshal fails due to invalid character error from marshaling |
Beta Was this translation helpful? Give feedback.
Answered by
stephenafamo
Mar 28, 2022
Replies: 1 comment
-
Since a UUID is not valid JSON, I don't think using json.Marshal is the way to go. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stephenafamo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since a UUID is not valid JSON, I don't think using json.Marshal is the way to go.