Electroneum
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;
38  StringStream ss(json);
39  reader.Parse(ss, handler);
40 
41  return 0;
42 }
ParseResult Parse(InputStream &is, Handler &handler)
Parse JSON text.
Definition: reader.h:557
Read-only string stream.
Definition: fwd.h:47
rapidjson::Document json
Definition: transport.cpp:49
Here is the call graph for this function: