I've written JSPRIT into a Jersey 2 RESTful server. I want our apps to call the server (POST) with a JSON string of a problem, feed the JSON request to JSPRIT and then output the best solution as JSON.
Everything works great.... except. I cannot work out how to output the solution to a JSON string. All the examples use VrpXMLWriter that writes to a disk file. I want to write the output as JSON to a string - not a file.
I've spent a few hours with my friend Google but have not worked it out.
Can someone help please ?