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

[[inputs.file]]
    files = ["./testdata/fields_and_tags/input.json"]
    data_format = "json_v2"
    [[inputs.file.json_v2]]
        [[inputs.file.json_v2.tag]]
            path = "fields.status"
        [[inputs.file.json_v2.field]]
            path = "fields.json.#.duration"
            rename = "json_duration"
        [[inputs.file.json_v2.field]]
            path = "fields.duration"
            type = "int"
