Skip to content

Releases: davidhoo/jsonpath

v2.0.1

03 Jan 07:38

Choose a tag to compare

Changelog

[v2.0.1] - 2024-01-17

Fixed

  • 修复了无输入时程序一直等待的问题
  • 添加了对 --help 标志的支持

Changed

  • 重构了主要逻辑到 run() 函数,提高代码可测试性
  • 改进了错误处理机制

Chore

  • .cursorrules 从版本控制中移除
  • 添加了新的测试用例

v2.0.0

16 Dec 10:54

Choose a tag to compare

jsonpath v2.0.0

Major release with significant improvements and changes:

Major Changes

  • Complete rewrite of the JSONPath implementation
  • Full compliance with JSONPath specification (RFC 9535)
  • Improved error handling and reporting
  • Enhanced performance and reliability
  • Better support for various JSONPath expressions

Breaking Changes

  • API changes to align with the RFC specification
  • Updated function signatures for better usability
  • Modified error types for more detailed error reporting

Documentation

  • Updated documentation to reflect RFC compliance
  • Added more examples and use cases
  • Improved API documentation

For more details, please refer to the documentation and examples in the repository.

v1.0.4

16 Dec 08:40

Choose a tag to compare

What's New in v1.0.4

  • Centralize version management
  • Add version.go for centralized version control
  • Update cmd/jp to use centralized version
  • Fix UTF-8 encoding in Chinese comments

v1.0.3

16 Dec 08:05

Choose a tag to compare

What's New

  • Enhanced filter expressions
    • Full support for logical operators (&&, ||, !)
    • Proper handling of complex filter conditions
    • Support for De Morgan's Law in negated expressions
    • Improved numeric and string comparisons
    • Better error messages
  • Improved API design
    • New simplified Query function for easier usage
    • Deprecated Compile/Execute in favor of Query
    • Better error handling and reporting
  • Updated examples
    • New examples demonstrating logical operators
    • Updated code to use new Query function
    • Fixed UTF-8 encoding issues in examples

v1.0.2

12 Dec 10:32

Choose a tag to compare

v1.0.2 Release Notes

What's New

  • Enhanced colorized output
    • Beautiful syntax highlighting for JSON
    • Colorful command-line interface
    • Improved readability for nested structures
  • Better UTF-8 support
    • Fixed CJK character display
    • Proper handling of multi-byte characters
  • Improved filter expressions
    • Fixed numeric comparisons
    • Better error messages
    • Support for direct value comparisons

Installation

Homebrew (Recommended)

v1.0.1

12 Dec 08:47

Choose a tag to compare

JSONPath v1.0.1

This release includes several improvements:

Features

  • Support outputting entire JSON document when -p is not provided
  • Enhanced color output with better distinction between keys and values
  • Improved command-line interface

Installation

Homebrew

brew tap davidhoo/tap
brew install jsonpath

Manual Installation

Download the appropriate binary for your platform from the releases page.

Usage

# Output entire JSON
jp -f data.json

# Query specific path
jp -f data.json -p '$.store.book[*].author'

For more examples and documentation, see the README.

JSONPath v1.0.0

12 Dec 06:06

Choose a tag to compare

JSONPath v1.0.0

First release of the JSONPath implementation, fully compliant with RFC 9535.

Features

  • Complete RFC 9535 compliance
  • Command line tool (jp)
  • Go library
  • Cross-platform support (macOS and Linux, both AMD64 and ARM64)

Installation

Homebrew

brew tap davidhoo/tap
brew install jsonpath

Manual Installation

Download the appropriate binary for your platform from the releases page.

Usage

jp -p '$.store.book[*].author' -f data.json

For more examples and documentation, see the README.