In Go, how can I parse the following JSON?
I know to use struct
to parse, but the keys are different for each entry, also they are not fixed, they can be more or less.
{
"consul": [],
"docker": [],
"etcd": ["etcd"],
"kubernetes": ["secure"],
"mantl-api": [],
"marathon": ["marathon"],
"mesos": ["agent", "follower", "leader", "master"],
"mesos-consul": [],
"zookeeper": ["mantl"]
}
Thanks for help!