Wire Sysio Wire Sysion 1.0.0
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 ( void )

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
static const Segment ss(Segment::ss)
Read-only string stream.
Definition stream.h:154
Here is the call graph for this function: