Electroneum
Loading...
Searching...
No Matches
simplereader.cpp File Reference
#include "rapidjson/reader.h"
#include <iostream>
Include dependency graph for simplereader.cpp:

Go to the source code of this file.

Classes

struct  MyHandler

Functions

int main ()

Function Documentation

◆ main()

int main ( )

Definition at line 33 of file simplereader.cpp.

33 {
34 const char json[] = " { \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3, 4] } ";
35
36 MyHandler handler;
37 Reader reader;
39 reader.Parse(ss, handler);
40
41 return 0;
42}
ParseResult Parse(InputStream &is, Handler &handler)
Parse JSON text.
Definition reader.h:557
GenericStringStream< UTF8< char > > StringStream
Definition fwd.h:49
GenericReader< UTF8< char >, UTF8< char >, CrtAllocator > Reader
Definition fwd.h:90
rapidjson::Document json
Definition transport.cpp:49
Here is the call graph for this function: