Adding type paramater to ApiResponse JSON