swapping libJSON out for rapidjson.