I created a custom view that uses Json.Simple to serialize the model and write the JSON to the response directly.
For some requests, I need to send back a static JSON message, so I am wondering can I reuse a View instance I created earlier (with the message already set)?
My View class is thread-safe.
Sure. As long as you make sure it’s thread-safe, as you say, there’s no reason that your controller can’t return the same
Viewobject multiple times. Unorthodox, but valid.