Skip to content

newest JSON pkg converts struct fields to lowercase #744

@petar

Description

@petar
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
Marshalling a struct like:

type A struct { Msg string }

Produces:

{ "msg":"...." }

Instead of the expected:

{ "Msg":"..." }


What is your $GOOS?  $GOARCH?
darwin, amd64

Which revision are you using?  (hg identify)
e7d0863b48db+ tip

Please provide any additional information below.

This happened right after the most recent update to JSON pkg.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions