Element.opIndex

Assumes that the element is a document

struct Element
@property const pure
opIndex
(
in string key
)

Return Value

Type: Element

The element with the key

Throws

If the element with the key is not found then a HiBONException is thrown If the element is not a Document then a HiBONException is thrown

Examples

If getting a chain of document you can do this

doc["$msg"]["params"]["data"].get!MyRecord