Added json support for service