Monitor: Added rapidjson and used it for generating json.