Skip to content

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/

Collection of JsonPath statments

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 importer that can captcher passwords (file, host process). Identify passwords and then we 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