In Go, how can I parse the next JSON? I know to use structfor parsing, but the keys are different for each record, 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 the help!
source
share