You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tool is a simple command line tool to query json documents using jq. It is written in javascript and uses the node-jq package to install and run jq.
4
+
5
+
## Installation
6
+
7
+
```bash
8
+
git clone github.com/gptscript/json-query
9
+
cd json-query
10
+
npm install
11
+
```
12
+
13
+
## CLI Usage
14
+
15
+
To test this command out directly you can run:
16
+
17
+
```bash
18
+
node jq.js --query '.' --jsonpath ./package.json
19
+
```
20
+
21
+
this will output the local package.json file.
22
+
23
+
## gptscript usage
24
+
25
+
To use this tool in a gptscript you can use the following code:
26
+
27
+
```gptscript
28
+
tools: ./tool.gpt
29
+
30
+
What is the version specified in the package.json file
0 commit comments