diff --git a/README.md b/README.md index e6095687..c8deb7d0 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ The simdjson library is easily consumable with a single .h and .cpp file. 2. Create `quickstart.cpp`: ```c++ +#include #include "simdjson.h" using namespace simdjson; int main(void) { diff --git a/doc/basics.md b/doc/basics.md index 54749b98..ce8dbda4 100644 --- a/doc/basics.md +++ b/doc/basics.md @@ -517,6 +517,7 @@ for (ondemand::object car : parser.iterate(cars_json)) { The following example illustrates how you may also iterate through object values, effectively visiting all key-value pairs in the object. ```C++ +#include #include "simdjson.h" using namespace std; using namespace simdjson; @@ -778,8 +779,8 @@ it selects the key `"count"` within that object. ```C++ -#include "simdjson.h" #include +#include "simdjson.h" int main(void) { simdjson::ondemand::parser parser; @@ -810,8 +811,8 @@ Observe how we use the `at` method when querying an index into an array, and not ```C++ -#include "simdjson.h" #include +#include "simdjson.h" int main(void) { simdjson::ondemand::parser parser; @@ -934,8 +935,8 @@ program from continuing if there was an error. If one is willing to trigger exceptions, it is possible to write simpler code: ```C++ -#include "simdjson.h" #include +#include "simdjson.h" int main(void) { simdjson::ondemand::parser parser; diff --git a/doc/dom.md b/doc/dom.md index def1f4ee..8f995783 100644 --- a/doc/dom.md +++ b/doc/dom.md @@ -274,6 +274,7 @@ Our program loads the file, selects value corresponding to key "search_metadata" it selects the key "count" within that object. ```C++ +#include #include "simdjson.h" int main(void) { @@ -301,6 +302,7 @@ triggering exceptions. To do this, we use `["statuses"].at(0)["id"]`. We break t Observe how we use the `at` method when querying an index into an array, and not the bracket operator. ```C++ +#include #include "simdjson.h" int main(void) { @@ -457,6 +459,7 @@ program from continuing if there was an error. If one is willing to trigger exceptions, it is possible to write simpler code: ```C++ +#include #include "simdjson.h" int main(void) {