crating presenter and json endpoint