Added json endpoint