title: Building a struct with a field name which has a comma
body: <p>I'm trying to create a struct based on a response I get.
  I have no control over the response, and in it's structure there are field names which use comma as part of the filed name itself</p>
  <p>JSON Example:</p>
  <pre><code>        &quot;date&quot;: &quot;2022-09-09 00:00:00 UTC&quot;,
          &quot;Sum&quot;: {
              &quot;Change, %&quot;: &quot;0.10&quot;,
              &quot;Price&quot;: &quot;254&quot;,
              &quot;Value, $&quot;: &quot;455.26&quot;,
              }
  </code></pre>
  <p>When trying to create a struct the &quot;regular&quot; way, I get an error since once I use the comma character, <code>reflect.StructTag.Get</code> expects something specific and not the rest of the name.
  Struct Example:</p>
  <pre><code>Date   string `json:&quot;date&quot;`
  Sum    struct {
      Change  string `json:&quot;Change, %&quot;`
      Price   string `json:&quot;Price&quot;`
      Value   string `json:&quot;Value, $&quot;`
  } `json:&quot;Sum&quot;`
  </code></pre>
  <p>The error I receive is:
  &quot;struct field tag <code>json:&quot;Value, $&quot;</code> not compatible with reflect.StructTag.Get: suspicious space in struct tag value&quot;</p>
  <p>The goal is to later manipulate and use this data (hopefully using my simple names), so &quot;just&quot; printing the JSON or moving it to an array or similar option cannot be the final step.</p>
  <p>The 'Price' field is working as expected, but the problem is with the fields using the comma.
  I couldn't find a way around it or a similar question.</p>
  <p>Would love to understand how to deal with this issue.</p>
  <p>Thanks!</p>