Compare exact result in Javascript/Jquery
<p>I'm just about creating a website, where im iterating through a list of items in a JSON file. It looks like this:</p>

<pre><code>"prices" : [
{
  "market_hash_name" : "★ Bayonet",
  "price" : 141.04,
  "created_at" : 1455877920
},
{
  "market_hash_name" : "AWP | Pit Viper (Minimal Wear)",
  "price" : "1.83",
  "created_at" : 1455878005
}
.
.
. and so on
</code></pre>

<p>Now, i'm sucessfull in searching and picking the "price" by the "market_hash_name" with a $ajax and a $each function in combination by jquery. Here it is: </p>

<pre><code>$.ajax({url: "../json/priceapi.json", success: function(result){  // Get JSON File

$.each(result.prices, function(i, v) {    
   if (v.market_hash_name == market_hash_name) { ... // Parse JSON Data
</code></pre>

<p>Everything works fine, the code seems to be alright, but the problem is, that there, anywhere in this huge JSON File is a exact same second "market_hash_name" but with a additional text part. An exmaple: </p>

<pre><code>{
  "market_hash_name" : "Souvenir AWP | Pit Viper (Minimal Wear)",                            
  "price" : "102.18",   // Additional text "Souvenir"
  "created_at" : 1455878414
},
</code></pre>

<p>Due this "double tag" the $each function tells me, that there are two results, for one key. I only want to have the exact result. Do you have any ideas how to do that? Is there a way to do something like this?</p>

<pre><code>$.each(result.prices, function(i, v) {    
  if (v.market_hash_name - "Souvenir" == market_hash_name) { ...
</code></pre>