diff --git a/doc/dom.md b/doc/dom.md index ab356dcd0..e42c46baa 100644 --- a/doc/dom.md +++ b/doc/dom.md @@ -770,6 +770,9 @@ void basics_treewalk_1() { } ``` +Notice that we do not include `dom::element_type::BIGINT` in this example +as `dom::element_type::BIGINT` type is only generated if the parser was +set to support big integers (`parser.number_as_string(true)`). Reusing the parser for maximum efficiency diff --git a/include/simdjson/dom/element.h b/include/simdjson/dom/element.h index 07877fed3..266fa96e3 100644 --- a/include/simdjson/dom/element.h +++ b/include/simdjson/dom/element.h @@ -22,6 +22,8 @@ enum class element_type { STRING = '"', ///< std::string_view BOOL = 't', ///< bool NULL_VALUE = 'n', ///< null + /// The BIGINT type is for integers that do not fit in 64 bits. It is only present + // if you set parser.number_as_string(true). BIGINT = 'Z' ///< std::string_view: big integer stored as raw digit string };