Use a better method for handling JSON strings

http://miloyip.github.io/rapidjson/md_doc_tutorial.html#QueryString