title: Question on Parsing Nested JSON via Struct
body: <p>I have a interesting JSON file that is a bit nested and I could not fine a good example of how to parse it correctly. Can someone please take a look below to see if my structs are correct, I can parse the root level items but the deeper I try to go I get lost. Please see my code below:</p>
  <p>The JSON file I'm attempting to Parse is in a separate file:</p>
  <pre><code>{
    &quot;pushed&quot;: 090909099,
    &quot;job_id&quot;: 17422,
    &quot;processed&quot;: 159898989,
    &quot;unit_report&quot;: [
      {
        &quot;meta&quot;: {
          &quot;file&quot;: {
            &quot;file_type&quot;: &quot;Binary&quot;,
            &quot;file_name&quot;: &quot;Bob.txt&quot;,
            &quot;file_path&quot;: &quot;/usr/local/Bob.txt&quot;,
            &quot;size&quot;: 4563,
            &quot;entropy&quot;: 3.877,
            &quot;hashes&quot;: [
              {
                &quot;name&quot;: &quot;Uniq34&quot;,
                &quot;value&quot;: &quot;02904234234234234243&quot;
              },
              {
                &quot;name&quot;: &quot;sha1&quot;,
                &quot;value&quot;: &quot;23423423423423423423423&quot;
              },
              {
                &quot;name&quot;: &quot;sha256&quot;,
                &quot;value&quot;: &quot;523412423424234234234&quot;
              }
            ]
          },
  </code></pre>
  <p>And my struct set up is below in my Go file below:</p>
  <pre><code>package main
  
  import (
      &quot;encoding/json&quot;
      &quot;fmt&quot;
      &quot;io/ioutil&quot;
      &quot;os&quot;
  )
  
  // Report struct
  type Report struct {
      Pushed int `json:&quot;pushed&quot;`
      JobID    int `json:&quot;job_id&quot;`
      Processed int `json:&quot;processed&quot;`
      SetReport  []struct {
          Meta struct {
              File struct {
                  FileType    string `json:&quot;file_type&quot;`
                  FileName    string `json:&quot;file_name&quot;`
                  FilePath    string `json:&quot;file_path&quot;`
                  Size        int    `json:&quot;size&quot;`
                  Entropy     int    `json:&quot;entropy&quot;`
              }
          }
      }
  }
  </code></pre>