In the process of binding to Slider AM from Slider agent python code here are some of the items I stumbled upon and would recommend as improvements.
This is how the Slider's registry looks today -
1. I would suggest to either remove the string jsonservicerec or if it is desirable to have a non-null data at all times then loop the string into the json structure as a top-level attribute to ensure that the registry data is always a valid json document.
2. The addresses attribute is currently a list of list. I would recommend to convert it to a list of dictionary objects. In the dictionary object it would be nice to have the host and port portions of objects of addressType "uri" as separate key-value pairs to avoid parsing on the client side. The URI should also be retained as a key say "uri" to avoid clients trying to generate it by concatenating host, port, resource-path, etc. Here is a proposed structure -