[Commandes Linux] jq

Introduction

Cette commande permet de parser du json et d'afficher le résultat en couleur ce qui est très pratique pour l'analyse.

Manuel

Utilisation basique

cat myfile.json | jq

Chercher un champ spécifique

jq '.[] | select(.<FIELD> | test("<VALUE>"; "i"))' myfile.json

Revision #1
Created 2025-04-01 10:03:29 UTC by Elieroc
Updated 2025-04-01 10:07:43 UTC by Elieroc