How to insert JSON into cassandra database using java API?
<p>This is the code I have used for writing my program but there are errors - please give us some suggestions with the corrected code.</p>

<pre><code>session.execute("INSERT INTO users JSON '{'id':'user123' , 'age':21 ,'state':'TX'}';");
</code></pre>

<p>The errors are directed to this one statement so I thought that its not necessary to present the whole code here.TABLE users has already been created in the cassandra database with the columns id, age and state. I could not find any proper answers for  this problem anywhere, I hope my problem is solved here.</p>