title: QJson data serialization order
body: <p>I have implemented a code that will take input from <code>QLineEdit</code> and the data will be saved in a json file format. </p>
  
  <pre><code>void MainWindow::fileWriteOperationJson()
  {    
      QString filename = "C:/Users/.../Documents/Qt/save.json";
      QFile saveFile(filename);
      saveFile.open(QIODevice::WriteOnly|QIODevice::Text);
  
      if (!saveFile.open(QIODevice::WriteOnly))
      {
            qWarning("Couldn't open save file.");    
      }
  
      QJsonObject obj; //this is the root
      QJsonArray personalData;    
  
      QJsonObject json;
      json["name"] = ui-&gt;nameLineEdit-&gt;text();
      json["address"] = ui-&gt;addressLineEdit-&gt;toPlainText();
  
      personalData.append(json);
      obj["personalData"] = personalData;
  
      QTextStream out(&amp;saveFile);
  
      out &lt;&lt; QJsonDocument(obj).toJson(QJsonDocument::Indented);    
  
  }
  </code></pre>
  
  <p><strong>Problem</strong>: When I open the json file, I want to find my data in the below format:</p>
  
  <pre><code>"name" = xyz
  "address" = xyz
  </code></pre>
  
  <p>But, I am having result like this,</p>
  
  <pre><code>"address" = xyz
  "name" = xyz
  </code></pre>
  
  <p>How to get this intended order?</p>