FAQ

On Fri, Aug 31, 2012 at 8:02 AM, Hans Stimer wrote:

Why doesn't json.Marshal, marshal embedded types? The docs make it clear
that it is missing, but why?
because it used to have behavior inconsistent to that of encoding/xml.
http://code.google.com/p/go/issues/detail?id=3069

IIRC, it's because of lack of time and testing (thus too risky) to fix that
issue before Go 1 launch.

Search Discussions

  • Russ Cox at Aug 31, 2012 at 9:57 pm

    On Thu, Aug 30, 2012 at 8:02 PM, Hans Stimer wrote:
    Why doesn't json.Marshal, marshal embedded types? The docs make it clear
    that it is missing, but why?
    It wasn't ready in time. It is CL 6460044 and will be in Go 1.1.

    Russ

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedAug 31, '12 at 8:43a
activeAug 31, '12 at 9:57p
posts2
users2
websitegolang.org

2 users in discussion

Russ Cox: 1 post Minux: 1 post

People

Translate

site design / logo © 2022 Grokbase