Makes it possible to cast a document to a value. (#1690)

* Makes it possible to cast a document to a value.
This commit is contained in:
Daniel Lemire
2021-08-11 20:02:30 -04:00
committed by GitHub
parent ba46616cbc
commit de4deb8c4e
16 changed files with 380 additions and 48 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ namespace internal {
{ PARSER_IN_USE, "Cannot parse a new document while a document is still in use." },
{ OUT_OF_ORDER_ITERATION, "Objects and arrays can only be iterated when they are first encountered." },
{ INSUFFICIENT_PADDING, "simdjson requires the input JSON string to have at least SIMDJSON_PADDING extra bytes allocated, beyond the string's length. Consider using the simdjson::padded_string class if needed." },
{ INCOMPLETE_ARRAY_OR_OBJECT, "JSON document ended early in the middle of an object or array." }
{ INCOMPLETE_ARRAY_OR_OBJECT, "JSON document ended early in the middle of an object or array." },
{ SCALAR_DOCUMENT_AS_VALUE, "A JSON document made of a scalar (number, Boolean, null or string) is treated as a value. Use get_bool(), get_double(), etc. on the document instead. "}
}; // error_messages[]
} // namespace internal