title: Map JSON values in Elixir
body: <p>I have parsed the following JSON using Posion.decode!</p>
  
  <pre><code>json = %{"color-Black|size:10" =&gt; 
      %{"attributes" =&gt; %{"color" =&gt; "Black","size" =&gt; "11"},    
        "isAvailable" =&gt; true,      
      "pricing" =&gt; %{"standard" =&gt; "$415.00", "sale" =&gt; 415}}, 
   "color|size-EU:9.5" =&gt; 
      %{"attributes" =&gt; %{"color" =&gt; "Black","size" =&gt; "11"},    
        "isAvailable" =&gt; true,      
      "pricing" =&gt; %{"standard" =&gt; "$415.00", "sale" =&gt; 415}}}
  </code></pre>
  
  <p>I want to map this and I'm unable to get JSON elements as the text in the node element changes.
  So far I've tried.</p>
  
  <pre><code>Enum.map(json , fn(item) -&gt;
  %{
    color: item.attributes["color"],                 
    size: item.attributes["size"],
    price: item.pricing["standard"] * 100,
    isAvailable: item.isAvailable
   }
  end)
  </code></pre>
  
  <p>But this code gives some error related to accessing.</p>