I am creating a json response in golang.I have a question that i am able to generate a json such as :
{
"Name" : "Country",
"Value" : "abc"
}
The value of name and value can change based on the user and the struct I am using is like:
type xAxis struct {
Name string,
Value string
}
I want my json to look like this:
{
"Country" : "abc"
}
Is it possible to create the json like this?