title: how to store a json object to a hibernate database field
body: <p>my case is the following. I have a JSF form with three outputtexts &amp; the corresponding inputtexts lets say:</p>
  
  <p>outputtext1 - inputtext1</p>
  
  <p>outputtext2 - inputtext2</p>
  
  <p>outputtext3 - inputtext3</p>
  
  <p>Currently i use a backbean method 'Save' in order to store them into the database (hibernate object lets say table1 with primary key table1.id) into fields table1.field1, table1.field2, table1.field3.</p>
  
  <p>So each record in the table have the values inserted in the inputtexts.</p>
  
  <p>My question is how am i going to <strong>store form data in the database</strong>, in a form like the following:</p>
  
  <p><strong>{"outputtext1:inputtext1","outputtext2:inputtext2"."outputtext3:inputtext3"}</strong> </p>
  
  <p>and then fetch them again, parse and rebuild the form. I am thinking of manipulating form data as JSON object... But i am new to both Java+JSON so some guideliness would be really useful for me!</p>
  
  <p>This is an indicative example, form are going to by dynamic and created on the fly.</p>