Can we update this to return a map[string]interface{}? Perhaps introduce a setting that indicate if a header is specified, if a header is specified, then that will be used as the key name if no header, just assume 'a', b', etc. For example, the JSON response would then become:
{
"header1": "value",
"header2": 1
}
Can we update this to return a
map[string]interface{}? Perhaps introduce a setting that indicate if a header is specified, if a header is specified, then that will be used as the key name if no header, just assume 'a', b', etc. For example, the JSON response would then become:{ "header1": "value", "header2": 1 }