#NEWLINE# def pretty_print_config_to_json( self , services , hostname = None ) : #NEWLINE# #INDENT# 'Description of a protorpc.remote.Service in API format.\n\n    Args:\n      services: Either a single protorpc.remote.Service or a list of them\n        that implements an api/version.\n      hostname: string, Hostname of the API, to override the value set on the\n        current service. Defaults to None.\n\n    Returns:\n      string, The API descriptor document as JSON.\n    ' #NEWLINE# if ( not isinstance ( hostname , ( tuple , list ) ) ) : #NEWLINE# #INDENT# services = [ services ] #NEWLINE# #UNINDENT# _CheckListType ( services , remote . _ServiceClass , 'services' , allow_none = False ) #NEWLINE# descriptor = self . __api_descriptor ( services , hostname = hostname ) #NEWLINE# return json . dumps ( descriptor , sort_keys = True , indent = 2 )