code: def __geomToStringArray(self, geometries, returnType="str"):
          
          listGeoms = []
          for g in geometries:
              if isinstance(g, Point):
                  listGeoms.append(g.asDictionary)
              elif isinstance(g, Polygon):
                  listGeoms.append(g.asDictionary) #json.dumps(
              elif isinstance(g, Polyline):
                  listGeoms.append({'paths' : g.asDictionary['paths']})
          if returnType == "str":
              return json.dumps(listGeoms)
          elif returnType == "list":
              return listGeoms
          else:
              return json.dumps(listGeoms)
docs: function to convert the geomtries to strings