I want to create an new json document:
========================================
rapidjson::Document document;
document.AddMember<int>("int_1", 1, document.GetAllocator());
========================================
Program asserted at document.h:253
252: GenericValue& AddMember(GenericValue& name, GenericValue& value,
Allocator& allocator) {
253: RAPIDJSON_ASSERT(IsObject());
I must call Parse("{}") before any AddMember() to avoid this assert.
It's corrected?
Original issue reported on code.google.com by zhangpei...@gmail.com on 11 Oct 2012 at 6:51
Original issue reported on code.google.com by
zhangpei...@gmail.com
on 11 Oct 2012 at 6:51