You need to read the input stream from the process. Something like this should work using Java 8
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("curl -s -S http://foo.com/testcode/Moo.cfm?PageName=" + $(Page.Name) + "&ProjectName=" + $(ProjectName));
//Java 8 version
String result = new BufferedReader(
new InputStreamReader(pr.getInputStream()))
.lines()
.collect(Collectors.joining("\n"));
//Older version than java 8
BufferedReader response = new BufferedReader(new InputStreamReader(pr.getInputStream()));
StringBuilder result = new StringBuilder();
String s;
while((s = response.readLine()) != null) {
result.append(s);
}
System.out.println(result.toString());
//You then need to close the BufferedReader if not using Java 8
response.close();
This will then print the full result in both cases
However, if you are looking for ways to just talking to websites you are probably better off using something like HttpClient or OKHttp.
If you are retrieving JSON I would suggest something like like Google GSON to parse it into objects. There is a good post on how to parse JSON at How to parse JSON in Java