# Example taken from: https://github.com/influxdata/telegraf/issues/5940

[[inputs.file]]
    files = ["./testdata/subfieldtag_in_object_2/input.json"]
    data_format = "json_v2"
    [[inputs.file.json_v2]]
        [[inputs.file.json_v2.object]]
            path = "@this"
            [[inputs.file.json_v2.object.tag]]
                path = "data"
            [[inputs.file.json_v2.object.field]]
                path = "cnt"
                type = "int"
            [[inputs.file.json_v2.object.field]]
                path = "format"
                type = "int"
