{
  "nftables": [
    {
      "metainfo": {
        "version": "1.1.7",
        "release_name": "Commodore Bullmoose #8",
        "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,
        "count": 5,
        "flags": ["timeout"],
        "timeout": 300
      }
    },
    {
      "set": {
        "family": "inet",
        "name": "static_set",
        "table": "test",
        "type": "ipv4_addr",
        "handle": 18,
        "flags": ["interval"]
      }
    },
    {
      "set": {
        "family": "inet",
        "name": "huge_set",
        "table": "test",
        "type": "ipv6_addr",
        "handle": 19,
        "comment": "automatically managed",
        "size": 10000000000,
        "count": 8765432100,
        "flags": []
      }
    },
    {
      "set": {
        "family": "inet",
        "name": "empty_set",
        "table": "test",
        "type": "ipv4_addr",
        "handle": 7,
        "comment": "comment",
        "size": 65536,
        "flags": ["timeout"],
        "timeout": 300
      }
    }
  ]
}
