code: def to_jsondict(self):
          
          body = {"oxs_fields": [ofproto.oxs_to_jsondict(k, uv) for k, uv
                                 in self.fields],
                  "length": self.length}
          return {self.__class__.__name__: body}
docs: Returns a dict expressing the flow stats.