title: How to read a JSON file into a Map, using Scala
body: <p>How can I read a JSON file into a Map, using Scala.  I've been trying to accomplish this but the JSON I am reading is nested JSon and I have not found a way to easily extract the JSON into keys because of that.  Scala seems to be wanting to also convert the nested JSON String into an object. Instead, I want the nested JSON as a String "value". I am hoping someone can clarify or give me a hint on how I might do this.</p>
  
  <p>My JSON source might look something like this:</p>
  
  <pre><code>{
    "authKey": "34534645645653455454363",
    "member": {
      "memberId": "whatever",
      "firstName": "Jon",
      "lastName": "Doe",
      "address": {
        "line1": "Whatever Rd",
        "city": "White Salmon",
        "state": "WA",
        "zip": "98672"
      },
      "anotherProp": "wahtever",
    }
  }
  </code></pre>
  
  <p>I want to extract this JSON into a Map of 2 keys without drilling into the nested JSON.   Is this possible?   Once I have the Map, my intention is to add the key-values to my POST request headers, like so:</p>
  
  <pre><code>val sentHeaders = Map("Content-Type" -&gt; "application/javascript", 
     "Accept" -&gt; "text/html", "authKey" -&gt; extractedValue,
     "member" -&gt; theMemberInfoAsStringJson)
  http("Custom headers")
  .post("myUrl")
  .headers(sentHeaders)
  </code></pre>