title: How can I convert a json string to a scala map?
body: <p>I have a nested json whose structure is not defined. It can be different each time I run since I am reading from a remote file. I need to convert this json into a map of type <code>Map[String, Any]</code>. I tried to look into json4s and jackson parsers but they don't seem to solve this issue I have.
  Does anyone know how I can achieve this?</p>
  
  <p>Example string:</p>
  
  <pre><code>{"body":{
      "method":"string",
      "events":"string",
      "clients":"string",
      "parameter":"string",
      "channel":"string",
      "metadata":{
          "meta1":"string",
          "meta2":"string",
          "meta3":"string"
      }
  },
  "timestamp":"string"}
  </code></pre>
  
  <p>The level of nesting can be arbitrary and not predefined.<br>
  To help with the use case:<br>
    I have a Map[String,Any] which I need to store in a file as backup. So I convert  it to a json string and store it in a file. Now everytime I get new data, I need to get the json from the file, convert it to a map again and perform some computation. I cannot store the map in memory since I would lose that if my job fails.<br>
  I need a solution that would convert the json string back to the original map I had before i converted it.</p>