Go to the source code of this file.
◆ main()
int main |
( |
int | , |
|
|
char * | [] ) |
Definition at line 189 of file jsonx.cpp.
189 {
190
192 char readBuffer[65536];
194
195
196 char writeBuffer[65536];
199
200
201 if (!reader.
Parse(is, writer)) {
203 return 1;
204 }
205
206 return 0;
207}
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.