title: Print json string in one line using circe in scala
body: <p>I want to print json to string in one line.</p>
  
  <pre><code>
      case class Data(e: Option[String])
  
      object Data {
        implicit val dEncoder = deriveDecoder[Data]
        implicit val dDecoder = deriveEncoder[Data]
      }
  
      case class Random(a: String,b: String, c: Int,d: Data)
  
      object Random {
        implicit val rEncoder = deriveDecoder[Random]
        implicit val rDecoder = deriveEncoder[Random]
      }
  
  </code></pre>
  
  <p><code>val res = Random("a","b", 1, Data("e"))</code></p>
  
  <p>when i do <strong>res.asJson.toString</strong>, i get:
      <code>
      {
      "a": "a",
      "b": "b",
      "c":1,
      "d":
      {
        "e": "e" 
      }
      }</code></p>
  
  <p>but i want it to be printed in one line without \n as using circe.</p>
  
  <p><code>**{"a": "a","b": "b", "c": 1,d:{"e": "e"}}**</code></p>