title: Serialize a data structure in text format in C++/Qt
body: <p>I need to store some data structure into a SQL database. This data may vary so I could not know which fields the database must have. I am about to do it encoding the data structure into a XML or JSON object and then put it into the SQL database. But it could not work, so I need <strong>serialization</strong>, since the problem is about encoding that structure.</p>
  
  <p>Which library/tool/method may I use to serialize/deserialize a data structure into a text? Let's say a data structure composed by some Integers, some Unicode strings, and some Booleans.</p>
  
  <p>Many thanks in advance!</p>