Go to the source code of this file.
◆ main()
Definition at line 11 of file simpledom.cpp.
11 {
12
13 const char*
json =
"{\"project\":\"rapidjson\",\"stars\":10}";
16
17
18 Value& s = d[
"stars"];
19 s.SetInt(s.GetInt() + 1);
20
21
24 d.Accept(writer);
25
26
27 std::cout << buffer.
GetString() << std::endl;
28 return 0;
29}
GenericDocument & Parse(const typename SourceEncoding::Ch *str)
Parse JSON text from a read-only string (with Encoding conversion).
const Ch * GetString() const
GenericValue< UTF8<> > Value
GenericValue with UTF8 encoding.
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
GenericStringBuffer< UTF8< char >, CrtAllocator > StringBuffer