The task is to parse json, coming by socket. There is no possibility to read all json into memory, you need to parse in parts. The processing code is approximately as follows:
char buffer[1024]; JsonParser parser; do { int length = socket.read(buffer, 1024); // возвращает длину прочитанного parser.parse(buffer, length); } while (length == 1024); JsonObject result = parser.getResult(); Those. you need a library that you can feed short arrays to the input, and then at the end get the result of parsing. What library can I use for this task, so as not to reinvent the wheel?
std::streambufso that it works with the network and feed it to this library. - yrHeTaTeJlb