Hi Shawn,

Thank you for your quick reply!

I’m not having any issues retrieving data from the database. I’m only 
concerned that the unmarshalling and marshalling processes seem needless 
and a little risky especially on big JSON objects.


On Thursday, August 10, 2017 at 1:17:02 PM UTC-7, Shawn Milochik wrote:
>
> Seems like something that should "just work." Are you having a problem 
> with this? If so, please show some code.
>
> A string is a string -- if you insert a base64-encoded value (or JSON, or 
> YAML) into a database varchar or text field, you should get the identical 
> string back out, character for character. The fact that it happens to be 
> base64 (or JSON, or YAML), shouldn't matter.
>
> If it comes out as invalid JSON, I'd bet it's being modified by your code 
> before insertion or after retrieval. Either way, show some code and I'll be 
> happy to look at it.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to