public string Build() { List <Path> paths = new List <Path>(); Path path = new Path(PathType.Search, "byTerm", Term, SearchFor, 48); path.AddAttribute("referenceId", "id", "length", "name", "trackIds", "requestId"); var pathsobj = Path.BuildPathList(paths); PathEvalRequest req = new PathEvalRequest(pathsobj); var json = JsonConvert.SerializeObject(req); return(json); }