title: Spark convert JSON string to JSON object (Java)
body: <p>I've been looking through examples of conversion from JSON string which was received from Kafka to JSON object. I've found only Scala examples which were not very helpful to me.</p>
  
  <p>However in Scala it looks like that:</p>
  
  <pre><code>val schema = new StructType().add("b", IntegerType)
  events.select(from_json('a, schema) as 'c)
  </code></pre>
  
  <p>Is it possible to do that in Java?</p>