title: Add json data to multiline string in scala to process using spark
body: <p>I am trying to utilize some parameters which are in multiline single json object in a json file stored on s3. However, because I am facing several issues for reading and parsing json in spark(honestly, its pain...), I tried using jackson converted a hardcoded multiline json to map as:</p>
  
  <p>Following is my json hardcoded as multiline string:</p>
  
  <pre><code>val jsonString = 
      """
          {
            myJSON
          }
      """
  </code></pre>
  
  <p>I used jackson binder to decode it:</p>
  
  <pre><code>    val mapper = new ObjectMapper
      mapper.registerModule(DefaultScalaModule)
      mapper.readValue(jsonString, classOf[Map[String, String]])
  </code></pre>
  
  <p>Now I can use a map very easily. Unfortunately all the code base uses a map, hence this method seems preferable to me. </p>
  
  <p>So I wanted to know if there is a way to create a multiline string with a json file in spark-scala? I will be fetching my json file from s3.</p>