<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sum(self, property):
 """Getting the sum according to the given property :@param property :@type property: string :@return int/float """

        self.__prepare()
        total = 0
        for i in self._json_data:
            total += i.get(property)

        return total