How to convert []byte -> JSON? #2477
Replies: 1 comment
-
Sorry, I don't quite understand the question. Can you share some example code that sqlc is generating with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm struggle with sqlc using pgx v5, now that JSON return when I have a query with both output:
col1 []byte
col2 []string
Despite spent 12 hours and still get garbarge text, how do I properly convert all slice byte and string to JSON and return to frontend e.g. React or HTML that is not manage by Go app? pgx v4 use pgtype.JSON was a better DX.
Beta Was this translation helpful? Give feedback.
All reactions