def to_JSON(self):
        """Dumps object fields into a JSON formatted string

        :returns: the JSON string

        """
        return json.dumps({"interval": self._interval,
                           "reception_time": self._reception_time,
                           "Location": json.loads(self._location.to_JSON()),
                           "weathers": json.loads("[" + \
                                ",".join([w.to_JSON() for w in self]) + "]")
                           })
def to_JSON ( self ) : return json . dumps ( { "interval" : self . _interval , "reception_time" : self . _reception_time , "Location" : json . loads ( self . _location . to_JSON ( ) ) , "weathers" : json . loads ( "[" + "," . join ( [ w . to_JSON ( ) for w in self ] ) + "]" ) } )
Dumps object fields into a JSON formatted string

        :returns: the JSON string