title: How can I get data in json array by ID
body: <p>I have a problem, may you help me!
  I have a json array:</p>
  
  <pre><code>"category" : [
  {
      id: 1,
      product: [{id : product_1, type : ball}] 
  },
  {
      id : 2,
      product :[{id : product_2, type : pen}]
  }
  ]
  </code></pre>
  
  <p>My problem is: if i have a link such as: <a href="http://test/category/1" rel="noreferrer">http://test/category/1</a> then , How can I do to get product information by category with id = 1 ? 
  Thanks for any suggestion :)</p>