![](<https://www.versio.io/img/logo/logo-blue.svg>)

# JsonPath best practices

## Introduction

Technically savvy users can use JsonPath statements to influence the behaviour of Versio.io or provide data for reporting.

The following link gives a very good overview of JsonPath: [https://goessner.net/articles/JsonPath/](<https://goessner.net/articles/JsonPath/>)

## Collection of JsonPath statements

| Where can you use it? | Description | JsonPath |
| --- | --- | --- |
| Host importer configuration | IPv6 addresses can change very often, causing changes in Versio.io. If IPv6 is not important to you, you can delete all IPv6 addresses in the Importer Configuration under 'Instance modification'. | `$.operatingSystem.networkInterfaces.*[?(@.family == 'IPv6')]` |
| All importers that can capture passwords (file, host process). | Identify passwords; we then recommend masking or, even better, hashing them. | `$..[?(@property.match(/.*password.*/i))]` |
| All key names | Identify all key names of an object | `$.someObject.*~` |

*Table: Best practice JsonPath statements*
