#include "rapidjson/reader.h"
#include <iostream>
#include <sstream>
Go to the source code of this file.
◆ main()
Definition at line 40 of file simplepullreader.cpp.
40 {
41 const char json[] = " { \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":123, \"pi\": 3.1416, \"a\":[1, 2, 3, 4] } ";
42
49 cout << handler.
type << handler.
data << endl;
50 }
51
52 return 0;
53}
bool IterativeParseNext(InputStream &is, Handler &handler)
Parse one token from JSON text.
void IterativeParseInit()
Initialize JSON text token-by-token parsing.
RAPIDJSON_FORCEINLINE bool IterativeParseComplete() const
Check if token-by-token parsing JSON text is complete.
static const Segment ss(Segment::ss)
@ kParseDefaultFlags
Default parse flags. Can be customized by defining RAPIDJSON_PARSE_DEFAULT_FLAGS.
◆ stringify()
std::string stringify |
( |
T | x | ) |
|