def dumps(self, changes_only: bool=False):
    'Returns the current IO key/values as json string'
    with lock:
        if changes_only:
            if (len(self._changes) == 0):
                return ''
            return json.dumps(self._changes)
        return json.dumps(self._io)
Returns the current IO key/values as json string
def dumps(self, changes_only: bool=False):
    
    with lock:
        if changes_only:
            if (len(self._changes) == 0):
                return 
            return json.dumps(self._changes)
        return json.dumps(self._io)