<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haronoid</author_name>
  <author_url>https://blog.hatena.ne.jp/haronoid/</author_url>
  <blog_title>ハロの外部記憶インターフェイス</blog_title>
  <blog_url>https://haronoid.hatenablog.com/</blog_url>
  <categories>
    <anon>.net8</anon>
    <anon>aspnet core api</anon>
    <anon>json</anon>
  </categories>
  <description>標準JsonSerializeではNull項目などすべての項目をJsonにして返しているため、通信量に無駄が多くなる。 なのでNewtonsoft.Jsonを適用し通信量を節約する Microsoft.AspNetCore.Mvc.NewtonsoftJsonを追加 Nugetから「Microsoft.AspNetCore.Mvc.NewtonsoftJson」を追加 ただし、.NETバージョンによって対応バージョンにちがいが存在。 .NET8では8.0.21をインストールする。 .NET9以降では最新で問題ないと思われる。 Program.cs AddNewtonsoftJsonを追加し、シ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharonoid.hatenablog.com%2Fentry%2F2025%2F10%2F24%2F113848&quot; title=&quot;Api側のJson Serializeを標準からNewtonsoft.Jsonへ変更 - ハロの外部記憶インターフェイス&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-10-24 11:38:48</published>
  <title>Api側のJson Serializeを標準からNewtonsoft.Jsonへ変更</title>
  <type>rich</type>
  <url>https://haronoid.hatenablog.com/entry/2025/10/24/113848</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
