<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def history_json(self, nb=0):
 """Return the history in ISO JSON format"""

        return [(i[0].isoformat(), i[1]) for i in self._history[-nb:]]