I don't know Rapidjson much, only know it is a third-party library for parsing json in C++. But I want to say, why don't you use boost for solve this problem. Give you my code, it has solved your problem perfectly.
Before run my code, please install boost library. Strongly recommend it!
I don't know Rapidjson much, only know it is a third-party library for parsing json in C++. But I want to say, why don't you use boost for solve this problem. Give you my code, it has solved your problem perfectly.
Before run my code, please install boost library. Strongly recommend it!
The codes test well in gcc 4.7, boost 1.57. You can get output:
John 2000.53
. I think it can solve your problem.