On Sat, Jan 18, 2020 at 10:28 PM <
Ramki...@hotmail.com> wrote:
>
> I have a server that requires data to be sent back that looks like this
>
> {"jsonrpc": "2.0", "result": [false, "", "", ""], "id": 1}
https://play.golang.org/p/WYrvolLytd9
Use a []interface{} for "result".
>
> Using json Encoder and Json Marshalling, the closes I have come up with is
>
> {
> "id": 1,
> "jsonrpc": "2.0",
> "result": "[false,\"\",\"\",\"\"]"
> }
>
> Is this possible to do?
>
https://play.golang.org/p/m936B_asGai
>
> --
> 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-nuts...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/38e23652-f595-4eb2-892b-39e09021b4fc%40googlegroups.com.