added rapidjson and parsing routine