{
  "nftables": [
    {
      "metainfo": {
        "version": "1.0.2",
        "release_name": "Lester Gooch",
        "json_schema_version": 1
      }
    },
    {
      "table": {
        "family": "inet",
        "name": "test",
        "handle": 5
      }
    },
    {
      "chain": {
        "family": "inet",
        "table": "test",
        "name": "test-chain",
        "handle": 1,
        "type": "filter",
        "hook": "input",
        "prio": 0,
        "policy": "accept"
      }
    },
    {
      "rule": {
        "family": "inet",
        "table": "test",
        "chain": "no_counter",
        "handle": 2,
        "comment": "test1",
        "expr": [
          {
            "match": {
              "op": "==",
              "left": {
                "payload": {
                  "protocol": "tcp",
                  "field": "dport"
                }
              },
              "right": 22
            }
          },
          {
            "accept": null
          }
        ]
      }
    },
    {
      "rule": {
        "family": "inet",
        "table": "test",
        "chain": "test-chain",
        "handle": 2,
        "comment": "test1",
        "expr": [
          {
            "match": {
              "op": "==",
              "left": {
                "payload": {
                  "protocol": "tcp",
                  "field": "dport"
                }
              },
              "right": 22
            }
          },
          {
            "counter": {
              "packets": 1,
              "bytes": 2
            }
          },
          {
            "accept": null
          }
        ]
      }
    },
    {
      "rule": {
        "family": "inet",
        "table": "test",
        "chain": "no_comment",
        "handle": 2,
        "expr": [
          {
            "match": {
              "op": "==",
              "left": {
                "payload": {
                  "protocol": "tcp",
                  "field": "dport"
                }
              },
              "right": 22
            }
          },
          {
            "accept": null
          }
        ]
      }
    },
    {
      "rule": {
        "family": "inet",
        "table": "test",
        "chain": "test-chain",
        "handle": 2,
        "comment": "test2",
        "expr": [
          {
            "match": {
              "op": "==",
              "left": {
                "payload": {
                  "protocol": "tcp",
                  "field": "dport"
                }
              },
              "right": 22
            }
          },
          {
            "counter": {
              "packets": 24468,
              "bytes": 1412296
            }
          },
          {
            "accept": null
          }
        ]
      }
    },
    {
      "set": {
        "family": "inet",
        "name": "non_empty_set",
        "table": "test",
        "type": "ipv6_addr",
        "handle": 6,
        "size": 65536,
        "flags": ["timeout"],
        "timeout": 300,
        "elem": [
          {
            "elem": {
              "val": "::1",
              "expires": 99
            }
          },
          {
            "elem": {
              "val": "::2",
              "expires": 277
            }
          },
          {
            "elem": {
              "val": "::3",
              "expires": 280
            }
          },
          {
            "elem": {
              "val": "::4",
              "expires": 284
            }
          },
          {
            "elem": {
              "val": "::5",
              "expires": 287
            }
          }
        ]
      }
    },
    {
      "set": {
        "family": "inet",
        "name": "static_set",
        "table": "test",
        "type": "ipv4_addr",
        "handle": 18,
        "flags": ["interval"],
        "elem": [
          "10.47.55.250",
          "10.47.56.232"
        ]
      }
    },
    {
      "set": {
        "family": "inet",
        "name": "empty_set",
        "table": "test",
        "type": "ipv4_addr",
        "handle": 7,
        "comment": "comment",
        "size": 65536,
        "flags": ["timeout"],
        "timeout": 300
      }
    }
  ]
}
