0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

概要

プロデルが、CLRらしいので、調べて見た。
jsonエンコード、jsonデコード、やってみた。

サンプルコード

//jsonデコード
JSON文字列は、「{"名前": "山田太郎", "年齢": 30, "趣味": [[]"プログラミング","読書"[]]}」
jsonは、JSON形式:  「[JSON文字列]」を読み取る
jsonを報告する
「名前:」 & json(「名前」)を表示する
「年齢:」 & json(「年齢」)を表示する
jsonの見出しを報告する
(jsonの見出しの個数)回、1から、数にカウントして繰り返す
	[jsonの見出し(数)] & 「: 」 & json([jsonの見出し(数)])を表示する
そして

//JSONエンコード
データという辞書を作る
データへ「名前」として「山田太郎」を設定する
データへ「年齢」として30を設定する
データへ「趣味」として「{"プログラミング"、"読書"}」を設定する
データを、JSON形式として整形して書き出してJSON文字列とする
JSON文字列を報告する


以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?