Re: [go-nuts] Issue with json unMarshall

2017-09-18 Thread as
If your field names match the JSON field names, you don't have to explicitly tag them. On Monday, September 18, 2017 at 6:10:46 AM UTC-7, Anil wrote: > > Thanks alot!! > > On Monday, 18 September 2017 18:38:49 UTC+5:30, Shawn Milochik wrote: >> >> Your struct has all unexported fields. So the jso

Re: [go-nuts] Issue with json unMarshall

2017-09-18 Thread Anil
Thanks alot!! On Monday, 18 September 2017 18:38:49 UTC+5:30, Shawn Milochik wrote: > > Your struct has all unexported fields. So the json package can't see them. > You have to capitalize the field names. > -- You received this message because you are subscribed to the Google Groups "golang-n

Re: [go-nuts] Issue with json unMarshall

2017-09-18 Thread Shawn Milochik
Your struct has all unexported fields. So the json package can't see them. You have to capitalize the field names. -- 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

[go-nuts] Issue with json unMarshall

2017-09-18 Thread Anil
package main import "fmt" import "encoding/json" type Rec struct { recordIdstring `json:"recordId"` cpmId string `json:"cpmId"` tpDataType string `json:"tpDataType"` tpData string `json:"tpData"` blockId string `json:"blockId"` } func main() { var