Scala case class to convert to jsonObject
<p>I have a case class object, and I want to convert this object to <code>JsonObject</code> (not <code>JsonString</code>) using (<code>com.fasterxml.jackson</code> which is Java API)
but the output I got is <code>{}</code>, which is not expected.</p>

<p>How I solved is :</p>

<p>I wrote a Scala Pojo class (How we write in Java with getter and setter, may be not correct way to write Pojo in Scala, as my knowledge in Scala is very minimal.) which solved the problem, and got proper <code>jsonObject</code>.</p>

<p>Do any one of you know better solution other than this?</p>