Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

例えば、XPRIM_JsonWriter を使って、次の JSON 文字列を構築したとします。

...

{
    "name":

...


    {
        "given":"John",

...


        "surname":"Smith"

...


    },
    "age":45,

...


    "contactNo":

...


    [
        { area:"02",

...

no:"9378

...

2867",

...

type:"landline"

...

},

...


        { no:"0468

...

732

...

371",

...

type:"mobile"

...

}
    ]
}


最初に XPRIM_JsonWriter オブジェクトを作成します。

...

#MyJsonString := #Writer.AsString


次は: XPRIM_RandomAccessJsonReader を使用した、JSON 値の読み込み