title: How to wait for a JSONModel.loadData() request in UI5
body: <p>In SAPUI5/OpenUI5, I have a <code>JSONModel</code> I populate by a file from server:</p>
  <pre class="lang-js prettyprint-override"><code>var oModel = new JSONModel();
  oModel.loadData(&quot;http://127.0.0.1/data/config.json&quot;);
  console.log(JSON.stringify(oModel.getData()));
  </code></pre>
  <p>The console logs <code>undefined</code> since the request is asynchronous.<br />
  How to make it synchronous so <code>console.log()</code> is called after the data was loaded?</p>