Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/WTFox/jsonfind
A fast and lightweight utility to easily find paths to values in JSON files.
https://github.com/WTFox/jsonfind
golang json
Last synced: about 1 month ago
JSON representation
A fast and lightweight utility to easily find paths to values in JSON files.
- Host: GitHub
- URL: https://github.com/WTFox/jsonfind
- Owner: WTFox
- License: mit
- Created: 2020-06-18T20:31:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-09T16:44:53.000Z (over 2 years ago)
- Last Synced: 2024-08-02T01:24:02.429Z (4 months ago)
- Topics: golang, json
- Language: Go
- Homepage: https://afox.dev/posts/jsonfind
- Size: 8.15 MB
- Stars: 31
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - WTFox/jsonfind - A fast and lightweight utility to easily find paths to values in JSON files. (Go)
README
# JSONFind
![Build and Test](https://github.com/WTFox/jsonfind/workflows/Build%20and%20Test/badge.svg?branch=master&event=push)
[![Go Report Card](https://goreportcard.com/badge/github.com/wtfox/jsonfind)](https://goreportcard.com/report/github.com/wtfox/jsonfind)
[![GitHub stars](https://img.shields.io/github/stars/wtfox/jsonfind)](https://github.com/wtfox/jsonfind/stargazers)
[![GitHub license](https://img.shields.io/github/license/wtfox/jsonfind)](https://github.com/wtfox/jsonfind/blob/master/LICENSE)A fast and lightweight utility to easily find paths to values in JSON files.
---
## Installation
```sh
brew install wtfox/tap/jsonfind
```---
## Usage
![usage](./assets/usage.png)
```text
NAME:
jf - JSONFindUSAGE:
jfVERSION:
1.1.0DESCRIPTION:
Search a JSON file for a specified value and output full paths of each occurrence foundCOMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--parent-paths, -p Renders the parent paths only (default: false)
--first-only, -f Returns the first occurrence only (default: false)
--use-regex, -r Use pattern matching via regex expression (default: false)
--help, -h show help (default: false)
--version, -v print the version (default: false)```
---
## Contributing
Bugs likely exist so issues and pull requests are welcomed!