welcome to the laminas forums. To answer your question: yes, it is possible.
To keep it short: Yes, you can use Laminas (API Tools or Mezzio). You could even use Laminas components to access the request body and send a JSON response. But the API Tools or Mezzio can do this already for you.