title: How to get a certain info from a json format?
body: <p>I am trying to get the count number of occurrenceTypeId = &quot;DANGEROUS_ATTACK_AWAY&quot;. For example in this case i want to display 10. I mention that this properties and valus aren't in the same order all the time, so liveStatistics[3].count is not working.</p>
  <pre><code>  &quot;liveStatistics&quot;: [
                  {
                      &quot;occurrenceTypeId&quot;: &quot;SHOTS_OFF_TARGET_AWAY&quot;,
                      &quot;count&quot;: 1
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;SHOTS_ON_TARGET_AWAY&quot;,
                      &quot;count&quot;: 2
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;CORNERS_HOME&quot;,
                      &quot;count&quot;: 5
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;DANGEROUS_ATTACK_AWAY&quot;,
                      &quot;count&quot;: 10
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;CORNERS_AWAY&quot;,
                      &quot;count&quot;: 3
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;SHOTS_OFF_TARGET_HOME&quot;,
                      &quot;count&quot;: 1
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;ATTACK_HOME&quot;,
                      &quot;count&quot;: 35
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;DANGEROUS_ATTACK_HOME&quot;,
                      &quot;count&quot;: 18
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;GOALS_HOME&quot;,
                      &quot;count&quot;: 2
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;SHOTS_ON_TARGET_HOME&quot;,
                      &quot;count&quot;: 6
                  },
                  {
                      &quot;occurrenceTypeId&quot;: &quot;ATTACK_AWAY&quot;,
                      &quot;count&quot;: 22
                  }
              ]
  </code></pre>