1 # <small>nlohmann::basic_json::</small>begin
4 iterator begin() noexcept;
5 const_iterator begin() const noexcept;
8 Returns an iterator to the first element.
10 ![Illustration from cppreference.com](../../images/range-begin-end.svg)
14 iterator to the first element
18 No-throw guarantee: this member function never throws exceptions.
28 The following code shows an example for `begin()`.
31 --8<-- "examples/begin.cpp"
37 --8<-- "examples/begin.output"
42 - Added in version 1.0.0.