title: Trying to put json into raw sql query and getting "Input string was not in a correct format"
body: <p>So, I using postgresql and need to update some 'jsonb' field and trying to do this with plain sql query, but it's a bit tricky when I trying to make this using interpolated strings or plain strings.</p>
  
  <p>When I use json object serrialization code is working:</p>
  
  <pre><code>await _ctx.Database.ExecuteSqlCommandAsync($"UPDATE \"PropertyItems\" SET \"_media\" = {JsonConvert.SerializeObject(new { })}::jsonb");
  </code></pre>
  
  <p>but, when I trying to set json structure manually it's fails</p>
  
  <pre><code>var buf = $"UPDATE \"PropertyItems\" SET \"_media\" = '{{}}'::jsonb";  //fail
  var buf = $"UPDATE \"PropertyItems\" SET \"_media\" = {{}}::jsonb";    //fail
  var buf = $"UPDATE \"PropertyItems\" SET \"_media\" = \'{{}}\'::jsonb"; //fail
  await _ctx.Database.ExecuteSqlCommandAsync(buf);
  </code></pre>
  
  <p>I'm kind of curious why it's happen and is there still a way to make this working with only strings, without json serializations?</p>