title: How to pretty-print (format) System.Text.JsonElement to a string
body: <p>Where is the API to format an existing <code>JsonElement</code> to a formatted JSON string.  The <code>ToString()</code> API does not provide any formatting options.</p>
  
  <p>Falling back to using Newtonsoft is pretty annoying</p>
  
  <pre class="lang-cs prettyprint-override"><code>Newtonsoft.Json.Linq.JValue
    .Parse(myJsonElement.GetRawText())
    .ToString(Newtonsoft.Json.Formatting.Indented)
  </code></pre>