Given the code below, geth returns:

{"jsonrpc":"2.0","id":"1","error":{"code":-32602,"message": "json: cannot unmarshal object into Go value of type []interface {}"}}

The code connects to geth, but I am obviously sending the wrong data for params . Geth wants [] and not an object . If I change the code to send a string that looks like [] , geth still complains.

Question: how do I send a [] to geth?