[
|../../../index.htm#lansa/jsoneng01_0035.htm]
現在地: Webサービス > JSON データの作業 > XPRIM_RandomAccessJsonReader を使用した、JSON 値の読み込み > Read…WithName メソッド
Read..WithName は Read…WithPath と非常によく似ています。ただし、パラメータはパスではなく、オブジェクト・メンバ名を参照する必要があります。
「現在の」エレメントはオブジェクトでなければいけません。
#Reader.BeginObjectWithName("name")
#GivenName := #Reader.ReadStringWithName("given")
#Surname := #Reader.ReadStringWithName("surname")
#Reader.EndObject
次は: Read…AtIndex メソッド
[
|../../../index.htm#lansa/jsoneng01_0035.htm]