title: Read layered hash from file
body: <p>In Scala, I would like to read a hash of hashes from a file.</p>
  
  <p>A sample input is the content of this page:</p>
  
  <p><a href="https://en.wikipedia.org/w/api.php?format=json&amp;action=query&amp;prop=extracts&amp;exintro=&amp;explaintext=&amp;titles=Sword" rel="nofollow">https://en.wikipedia.org/w/api.php?format=json&amp;action=query&amp;prop=extracts&amp;exintro=&amp;explaintext=&amp;titles=Sword</a></p>
  
  <p>The only way I could think of reading this is to recursively split by <code>{</code>, <code>}</code> and <code>:</code>. This however seems a bit ugly.</p>
  
  <p>Is there a way of reading this layered hash with relatively little code?</p>