> Here's an example error:
> 2011/07/22 15:03:38 http: panic serving 127.0.0.1:36734: json: invalid UTF-8
> in string: "N \xdd\xfc\\\r\xd2\rW\x00\x00\x05"
Unlike BSON, JSON can't take raw binary data. If you want to encode,
you'll have to encode in a more friendly format to JSON..
Hmmm, gobson can actually give a hand there, by encoding the id it as
a hash via the marshaller interface. Would that be useful to you?
--
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/plus
http://niemeyer.net/twitter
http://niemeyer.net/blog
-- I never filed a patent.
Sounds good, I'll see what I can do about that. Marshaller is easy, the
unmarshaller one requires a bit of thinking, but may be doable as well.