Is there a way to obtain the list of custom SOEs for a given service when specifying the format as JSON? I can't seem to find any reference of being able to do it, though they are listed when viewing the HTML response (i.e. by accessing http://server/arcgis/rest/services/service_name/mapserver).