問題 coverage-300435-enauto-json-list・第1版

問題

interfaceがYANG listである。container全体のJSON表現として適切なのはどれか。

  1. A 

    "interface":[{"name":"Gi0/1","mtu":1500}]

  2. B 

    "interface":"Gi0/1"

  3. C 

    "interface":1500

  4. D 

    "interface":[1500,true]

正解:A

理由

listは一件でもarrayで表す。

選択肢ごとの説明

A.

"interface":[{"name":"Gi0/1","mtu":1500}]

keyを持つentryのarrayである。

B.

"interface":"Gi0/1"

listの子nodeを表せない。

C.

"interface":1500

名前と属性の構造がない。

D.

"interface":[1500,true]

entryのobjectとkeyがない。

参考資料

お問い合わせ

演習する →