In the examples, GreetRequest is a simple struct with a single Name field. I was expecting to send the request as an object
But I get the error:
decode json: json: cannot unmarshal object into Go value of type []*simplyProjected.SimpleRequest
If I send it as an array its fine. Is the expected behaviour of the decoder to assume an array of objects?
https://github.com/machinebox/remoto/blob/master/examples/greeter/server/greeter/server.go#L90
In the examples,
GreetRequestis a simple struct with a singleNamefield. I was expecting to send the request as an object{ "name": "mike" }But I get the error:
If I send it as an array its fine. Is the expected behaviour of the decoder to assume an array of objects?
[{ "name": "mike" }]https://github.com/machinebox/remoto/blob/master/examples/greeter/server/greeter/server.go#L90