OK, after browsing trough the source code, documentation and mostly every mention of rapidjson over the internet, I found something interesting:
There are a couple of functions SetString
, and this is the one you have to use:
GenericValue& SetString(const Ch* s, Allocator& allocator)
After that, you can call GetString()
on the Value
and it returns the original string.