ghz icon indicating copy to clipboard operation
ghz copied to clipboard

parsing of "_" in json-file (proto definitions)?

Open andife opened this issue 2 years ago • 0 comments

A message containing an "_" results in the following error:

PS C:\Dev> ghz --insecure --call com.api_pre.PreToHost.ReqPre -D .\req4.json localhost:5001 Error creating message from data. Data: '{ "image_md": { "value": "03fdc668605146839ee31" } }' Error: json: cannot unmarshal object into Go value of type string

req4.json { "image_md": { "value": "03fdc668605146839ee31" } }

Command line arguments / config ghz --insecure --call com.api_pre.PreToHost.ReqPre -D .\req4.json localhost:5001

Environment

  • OS: Windows10, powershell/cmd / gitbash
  • ghz: ghz --version => dev => installed yesterday using "go install github.com/bojand/ghz/cmd/ghz@latest"

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

andife avatar Jun 23 '23 07:06 andife