[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-29 Thread Brian Candler
You have a specific piece of input data which is causing this error "json data parse after line 1 to 28" Therefore, please modify your code to print the actual value just before parsing it; then do whatever triggers the error; then place that value inside the play.golang.org program to replicat

[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Ali Hassan
[Unexcepted NonWhitespacing json data parse after line 1 to 28 ] You can checkout my repo https://github.com/ali2210/HealthyTickets/blob/master/main.go On Tuesday, April 28, 2020 at 1:53:38 PM UTC+5, Ali Hassan wrote: > > [image: Capture.JPG] > > Data : TYPE OF Json > > > > var member Member

Re: [go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Matthew Zimmerman
Ali, that demo doesn't run given there's no http environment in the playground. I assume this issue is not HTTP specific. Something more like this (obviously change your data where it doesn't parse what you want): https://play.golang.org/p/RACYspxInyA Also, please don't store or recreate passwor

[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Ali Hassan
https://play.golang.org/p/cRBdSyGcGfp Demo Version On Tuesday, April 28, 2020 at 1:53:38 PM UTC+5, Ali Hassan wrote: > > [image: Capture.JPG] > > Data : TYPE OF Json > > > > var member Member // struct where json > data, err :=json.Marshall(member); if err != nil{ fmt.Printf("Error %s", > err)}

[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Ali Hassan
I try On Tuesday, April 28, 2020 at 1:53:38 PM UTC+5, Ali Hassan wrote: > > [image: Capture.JPG] > > Data : TYPE OF Json > > > > var member Member // struct where json > data, err :=json.Marshall(member); if err != nil{ fmt.Printf("Error %s", > err)} > fmt.Printf("Data", data) > > err = json.New

[go-nuts] Re: Json Parse Data [unexecpted non whitespace 1 to 28]

2020-04-28 Thread Brian Candler
Can you make this into a standalone reproducing test case on play.golang.org, then share the URL with us? -- 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 golang-