The code - JSONNode topNode; topNode.push_back(JSONNode("Connected", true)); Sometimes this results in std::length error thrown. The decoded callstack - Exception Type: std::length_error Exception what(): basic_string::_S_create <libstdc++ stuff=""> internalJSONNode::Set(bool) JSONNode::JSONNode(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, bool)</char></char,></libstdc++> Your help in understanding why these two lines of code results in the exception sometimes...