Afficher les instructionsShow instructionsCacher les instructionsHide instructions
For English instructions, click the EN button in the upper right.
Cliquer sur un élément du JSON dans la boîte de texte au bas de l'écran. L'élément
cliqué sera surligné en bleu et l'expression jq
permettant de la sélectionner sera affichée dans la barre d'expression au-dessus du JSON.
En mode JSON lines, les éléments correspondant à la même expression dans
les autres lignes seront surlignées en jaune.
Il faut cliquer juste avant un crochet ou une accolade pour choisir un objet ou un tableau
Pour charger un nouveau JSON ou JSON lines, effectuer une des opérations suivantes:
glisser un fichier sur la page
appuyer sur Choisir un fichier
appuyer sur Coller pour insérer le contenu du presse-papier, attention de spécifier le type du JSON collé.
Le contenu JSON est validé avant d'être chargé, un message peut donc apparaître en cas de fichier invalide.
Les boites de texte JSON et expression ne peuvent être modifiés. On peut toutefois sélectionner et copier
depuis la barre d'expression.
Il est possible de parcourir la structure JSON avec les flèches du clavier pour sélectionner
des éléments voisins s'ils existent; l'expression jq est mise à jour en conséquence:
vers le haut: le parent
vers le bas: le premier enfant (dans un couple clé:valeur, la valeur est considérée
comme l'enfant de la clé)
à droite: le prochain frère
à gauche: le frère précédent
Ceci est surtout utile pour des JSON Lines. Pour un JSON indenté,
le parcours est moins intuitif, car il ne correspond pas aux positions sur l'écran.
Il faut parfois faire défiler le bloc JSON pour faire apparaître la nouvelle sélection.
Pour les instructions en français, cliquer sur le bouton FR en haut à droite.
Click on an element of the JSON in the text box at the bottom of the screen. The
element clicked will be highlighted in blue and the
jq expression used to select it will be displayed in the expression bar above the JSON.
In JSON lines mode, elements corresponding to the same expression in
other lines will be highlighted in yellow.
It's necessary to click just before a bracket or brace to select an object or array
To load a new JSON or JSON lines, perform one of the following operations:
drag a file onto the page
press Select a file
press Paste to insert the clipboard content, take care to specify the type of
pasted JSON.
The JSON content is validated before being loaded, so a message may appear in the event of an invalid file.
The JSON and expression text boxes cannot be modified. However, you can select and copy from the
expression bar.
It is possible to navigate the JSON structure using the keyboard arrows to select
neighboring elements, if they exist; the jq expression being updated:
up: the parent
down: the first child (in a key:value pair, the value is considered the child of the key)
right: the next sibling
left: the previous sibling
This is especially useful for JSON Lines. For indented JSON,
navigation is less intuitive, as it does not correspond to the positions on the screen.
Sometimes, you have to scroll through the JSON block to reveal the new selection.