ArduinoJson: F.A.Q

Can I parse data from a stream?


Since ArduinoJson 5.8, parseArray() and parseObject() accept Arduino’s Stream and std::istream as input:

JsonObject& root = jsonObject.parseObject(myStream);

CAUTION: parts of the input need to be copied into the JsonBuffer, so you need to increase its capacity accordingly.


Fork me on GitHub