Go to the source code of this file.
◆ main()
int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 108 of file filterkey.cpp.
108 {
109 if (argc != 2) {
110 fprintf(stderr, "filterkey key < input.json > output.json\n");
111 return 1;
112 }
113
114
116 char readBuffer[65536];
118
119
120 char writeBuffer[65536];
123
124
126
127
128
129 if (!reader.
Parse(is, filter)) {
131 return 1;
132 }
133
134 return 0;
135}
File byte stream for input using fread().
Wrapper of C file stream for output using fwrite().
ParseResult Parse(InputStream &is, Handler &handler)
Parse JSON text.
ParseErrorCode GetParseErrorCode() const
Get the ParseErrorCode of last parsing.
size_t GetErrorOffset() const
Get the position of last parsing error in input, 0 otherwise.
RAPIDJSON_NAMESPACE_BEGIN const RAPIDJSON_ERROR_CHARTYPE * GetParseError_En(ParseErrorCode parseErrorCode)
Maps error code of parsing into error message.
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)