boglehead/portfolio.py
def to_json_str(self):
        """Capture Portfolio as a json string
        """
        data = {}
        for i in range(len(self.funds)):
            data[self.funds[i].symbol] = self.proportions[i]
        return json.dumps(data)
Capture Portfolio as a json string
        
Capture Portfolio as a json string
Capture Portfolio as a json string
def to_json_str(self):
        data = {}
        for i in range(len(self.funds)):
            data[self.funds[i].symbol] = self.proportions[i]
        return json.dumps(data)
def to_json_str ( self ) : data = { } for i in range ( len ( self . funds ) ) : data [ self . funds [ i ] . symbol ] = self . proportions [ i ] return json . dumps ( data )
Capture Portfolio as a json string
Capture Portfolio as a json string
"""Capture Portfolio as a json string
        """
self