ext/rj_schema/rapidjson/doc/stream.md in rj_schema-0.1.3 vs ext/rj_schema/rapidjson/doc/stream.md in rj_schema-0.1.4
- old
+ new
@@ -40,10 +40,11 @@
`StringBuffer` is a simple output stream. It allocates a memory buffer for writing the whole JSON. Use `GetString()` to obtain the buffer.
~~~~~~~~~~cpp
#include "rapidjson/stringbuffer.h"
+#include <rapidjson/writer.h>
StringBuffer buffer;
Writer<StringBuffer> writer(buffer);
d.Accept(writer);
@@ -96,10 +97,11 @@
`FileWriteStream` is buffered output stream. Its usage is very similar to `FileReadStream`.
~~~~~~~~~~cpp
#include "rapidjson/filewritestream.h"
+#include <rapidjson/writer.h>
#include <cstdio>
using namespace rapidjson;
Document d;
@@ -213,9 +215,10 @@
`EncodedOutputStream` is similar but it has a `bool putBOM` parameter in the constructor, controlling whether to write BOM into output byte stream.
~~~~~~~~~~cpp
#include "rapidjson/filewritestream.h" // FileWriteStream
#include "rapidjson/encodedstream.h" // EncodedOutputStream
+#include <rapidjson/writer.h>
#include <cstdio>
Document d; // Document is GenericDocument<UTF8<> >
// ...