Adding json support for services