File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ struct ParsedJson {
154154
155155 bool is_double () const ;
156156
157+ bool is_true () const ;
158+
159+ bool is_false () const ;
160+
161+ bool is_null () const ;
162+
157163 static bool is_object_or_array (uint8_t type);
158164
159165 // when at {, go one level deep, looking for a given key
Original file line number Diff line number Diff line change @@ -161,6 +161,18 @@ bool ParsedJson::iterator::is_double() const {
161161 return get_type () == ' d' ;
162162}
163163
164+ bool ParsedJson::iterator::is_true () const {
165+ return get_type () == ' t' ;
166+ }
167+
168+ bool ParsedJson::iterator::is_false () const {
169+ return get_type () == ' f' ;
170+ }
171+
172+ bool ParsedJson::iterator::is_null () const {
173+ return get_type () == ' n' ;
174+ }
175+
164176bool ParsedJson::iterator::is_object_or_array (uint8_t type) {
165177 return (type == ' [' || (type == ' {' ));
166178}
You can’t perform that action at this time.
0 commit comments