Added json API to creating comments