simplified sample code for JsonResponseDirector