FILE *fp = fopen("input.json", "r"); // stupid windows need rb
char buf[0XFFFF];
//FileReadStream(FILE *fp, char *buffer, std::size_t bufferSize)
rapidjson::FileReadStream input(fp, buf, sizeof(buf));
rapidjson::Document document;
document.ParseStream(input);
fclose(fp);
cout << document["hello"].GetString() << endl;
Code Example |
---|
Cpp :: c++ case |
Cpp :: C++ switch cases |
Cpp :: appending int to string in cpp |
Cpp :: lerp function c++ |
Cpp :: how to round to nearest whole number unity |
Cpp :: c++ how to make a negative float positive |
Cpp :: tuple c++ |
Cpp :: length of string c++ |
Cpp :: loop through a vector in c++ |
Cpp :: slice std::array cpp |
Cpp :: c++ string contains |
Cpp :: SetUnhandledExceptionFilter |
Cpp :: c++ typeid |
Cpp :: remove last index of the string in c++ |
Cpp :: segmented sieve cpp |
Cpp :: read comma separated text file in c++ |
Cpp :: how to easily trim a str in c++ |
Cpp :: ubuntu dotnet core install |
Cpp :: c++ check palindrome |
Cpp :: calloc c++ |
Cpp :: lutris |
Cpp :: c++ keyboard input |
Cpp :: cpp get last element of vector |
Cpp :: how to input a vector when size is unknown |
Cpp :: cpp create lambda with recursion |
Cpp :: anagram solution in c++ |
Cpp :: str remove char c++ |
Cpp :: c++ 14 for sublime windoes build system |
Cpp :: cpp while |
Cpp :: c++ if example |