Skip to content

gptscript-ai/json-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gptscript JSON query tool

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.

Installation

git clone https://github.com/gptscript/json-query
cd json-query
npm install

CLI Usage

To test this command out directly you can run:

node jq.js --query '.' --jsonpath ./package.json

this will output the local package.json file.

gptscript usage

To use this tool in a gptscript you can use the following code:

tools: ./tool.gpt

What is the version specified in the package.json file

A more complex example:

tools: ./tool.gpt,sys.download

download https://raw.githubusercontent.com/bahamas10/css-color-names/master/css-color-names.json
find out the css values for darkviolet and the color blue

About

gptscript for querying JSON documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •