simplified product responses and moved the toArray and JSON logic to the controller