Task: Return a JSON Object from a Java Servlet
Task: Return a JSON Object from a Java Servlet: a task in Terminal-Lego-15k (Harbor dataset). Create a Java Servlet that returns a properly formatted JSON response. The servlet should demonstrate the correct way to set the content type, construct a JSON object, and write it to the HTTP response.
Part of PrimeIntellect/Terminal-Lego-15k.