Added json generation for product detail