serialization with rapidjson, replaced (*it). with it->