jarvis657 / goprotobuf

Automatically exported from code.google.com/p/goprotobuf
Other
0 stars 0 forks source link

JSON serialization of messages #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

text := &example.Test{ ... } // using the README example
data, err := json.Marshal(test)
if err != nil {
  log.Fatal("marshalling error: ", err)
}
log.Debug("data: ", data)

What is the expected output? What do you see instead?

"XXX_unrecognized" fields are been serialized too, and they shouldn't

What version of the product are you using? On what operating system?

Tip, in all systems

Please provide any additional information below.

Original issue reported on code.google.com by ernestok...@gmail.com on 31 Aug 2011 at 2:43

GoogleCodeExporter commented 9 years ago
We need some extra support from the JSON package to do this; I've sent out a CL 
to get that started.

Original comment by dsymo...@golang.org on 4 Sep 2011 at 11:47

GoogleCodeExporter commented 9 years ago
This issue was closed by revision bc76a153ffde.

Original comment by dsymo...@golang.org on 30 Sep 2011 at 12:24