Return a non‐modifiable reference to the held array element at index.
Synopsis
Declared in <bdljsn_json.h>
Json const&
operator[](std::size_t index) const;
Description
Return a reference providing non‐modifiable access to the element at the specified index in the JsonArray held by this object. The behavior is undefined unless isArray() returns true and index < theArray().size().
Return Value
a non‐modifiable reference to the element at the specified position
Parameters
Name |
Description |
index |
zero‐based element position |
Created with MrDocs