title: How to serialize a QJSonObject?
body: <p>I am new to the JSON and I started experimenting with it, but I couldn't manage to save any of my QJsonObject, or QJsonArrays at all. Did I get it right, if I want to get the Json format of my QjsonObject I have to serialize it? </p>
  
  <p>Basically I want to save in a json file all my QJsonObsject but it's not working, here is my code</p>
  
  <pre><code>    QtJson::JsonObject ingredient;
      ingredient["name"] = newIngredient-&gt;GetName();
      ingredient["pirce"] = newIngredient-&gt;GetPrice();
      ingredient["date"] = newIngredient-&gt;GetDate();
      QByteArray data = Json::serialize(ingredient);
  
      qDebug() &gt;&gt; data;
  </code></pre>
  
  <p>Like I found out there is no more Json, not QJson, so is there any serialize() function what I could use? 
  Thanks and sorry if I used the wrong terms, I am learning them yet.</p>