title: NLog Database Parameter + .NET Core: all-event-properties in JSON?
body: <p>I am using the Database target and trying to figure out a way to send <code>all-event-properties</code> as a parameter in JSON format; I see that parameter includes a property for &quot;format,&quot; but when I do <code>format=&quot;json&quot;</code> it doesn't produce the desired effect.</p>
  <p>Here's what I have in my nlog.config file:</p>
  <pre><code>&lt;target name=&quot;database&quot;&gt;
      &lt;parameter name=&quot;@properties&quot; layout=&quot;${all-event-properties}&quot; format=&quot;json&quot; /&gt;
  &lt;/target&gt;
  </code></pre>
  <p>Unfortunately my properties are still getting logged in the format</p>
  <pre><code>property1=property1, property2=property2, property3=property3
  </code></pre>
  <p>What I'm expecting to see is</p>
  <pre><code>{
      &quot;property1&quot;: &quot;property1&quot;,
      &quot;property2&quot;: &quot;property2&quot;,
      &quot;property3&quot;: &quot;property3&quot;
  }
  </code></pre>
  <p>Please advise.  Thank you!</p>