I would like to serialize the following JSON into a map[string]string with map["Name"] == "Value"
{
"Item": {
"tags": {
"Name": "Value"
}
}
}
However, I want to not have to create a strut with one field for "item". Is it possible to ignore the root JSON element in go similar to Java/Jackson: mapper.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true);
The best I have so far is:
items := make(map[string]map[string]string)
items := items["Item"]