title: Custom Json Marshaling
body: <p>I have a third-party json api to work with in go.<br>
  It has some endpoints which return data as key-value.<br>
  For example here is json for statuses:</p>
  
  <pre><code>{
    "result": {
      "0": "done",
      "1": "incomplete",
      "2": "completed",
      ....
    }
  }
  </code></pre>
  
  <p>So as you see it is not an array it is an object.<br>
  Is it possible to marshal this kind of json to array of objects like </p>
  
  <pre><code>type Status struct {
      Id int
      Status string
  }
  </code></pre>
  
  <p>without using additional struct like</p>
  
  <pre><code>type StatusReposne struct {
      Result map[string]string `json:"result"`
  }
  </code></pre>
  
  <p>and code to extract values?</p>