Is it possible to have a struct with multiple JSON tags?
<p>I post a request to a server and get a reply in JSON format. I'm able to unmarshal it to a struct. Then I need to create a new JSON file with the same data but different JSON tags. </p>

<p><strong>Example:</strong></p>

<p>In the following code, I get <code>{"name":"Sam","age":20}</code> from a server and unmarshal it to the struct <code>Foo</code>:</p>

<pre><code>type Foo struct {
    Name string `json:"name"`
    Age  int    `json:"age"`
}
</code></pre>

<p>Then I need to change the tag <code>name</code> to <code>employee_name</code> and omit <code>age</code>:</p>

<pre><code>type Bar struct {
    Name string `json:"employee_name"`
    Age  int    `json:"-"`
}
</code></pre>

<p>After that I send this modified data to another server.</p>

<p>I know I could just create a new <code>Bar</code> and copy all data into it, but there are a lot of fields. I was wondering if there is a way to attach multiple JSON tags like this:</p>

<pre><code>type Foo struct {
    Name string `json:"name" json:"employee_name"`
    Age  int    `json:"age" json:"-"`
}        
</code></pre>

<p>Thanks in advance.</p>