fixed: return a CJSONGenerator* from ConnectionsToJSON() instead of a string
fixed: return CJSONGenerator* from PortsToJSON() and PortIndexToJSON() instead of string