オブジェクトにJSONがありますが、jsonのサンプルの値は次のように返されるようです。
{
"rootLayout":"main",
"layoutDescriptions":[
{
"id":"main",
"container" : {
"type":"Tabs",
"content":[
{
"type":"Panel",
"label":"Simple Address",
"layout":"SimpleForm",
"comment":"This form is simple name value pairs",
"content":[
{ "type":"label", "constraint":"newline", "text":"Org Name" },
{ "type":"text", "property":"propOne" },
{ "type":"label", "constraint":"newline", "text":"Address" },
{ "type":"text", "property":"addrLine1" },
{ "type":"text", "property":"addrLine2" },
{ "type":"text", "property":"addrLine3" },
{ "type":"label", "constraint":"newline", "text":"Postcode" },
{ "type":"text", "property":"postcode" }
]
},
を使用してrootLayoutを返そうとしています
obj[0].rootLayout.id
これは機能しません。コンテンツ要素にアクセスする方法も考えています。
私はjsonを初めて使用し、私が思うに深いところに投げ込まれました。私はインターネット上で良い読書を見つけることができません。誰かがいくつかを推薦することができます。
ありがとう。