using rapidjson to parse data