added json resopnse writer