<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>edosha</author_name>
  <author_url>https://blog.hatena.ne.jp/edosha/</author_url>
  <blog_title>子育てしながらエンジニアしたい</blog_title>
  <blog_url>https://edosha.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>バイナリデータをネットワーク送受信したい バイナリデータをネットワーク越しに送受信したいことがあります。 普通にバイナリだけ送れば良いのですが、そのバイナリの属性値などを一緒に送りたいという要望がありました。 いろんな属性値を一度に送るのは JSON が便利なので、バイナリも JSON 形式に載せて送りたいと思ったのですが、ちょっと手こずったので記録しておきます。 テキストを JSON で送るには... テキスト形式の dict を JSON として送信するのは、json モジュールを使って簡単に実現できます。 import json # 送りたい dict データ dictdata = { …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedosha.hatenablog.jp%2Fentry%2F2017%2F09%2F05%2F174453&quot; title=&quot;Python: 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>2017-09-05 17:44:53</published>
  <title>Python: JSON でバイナリを扱う</title>
  <type>rich</type>
  <url>https://edosha.hatenablog.jp/entry/2017/09/05/174453</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
