github.com/ohler55/ojg
v1.28.5
#1768 most downloaded on Go modules
ohler55/ojg
What this package is like to depend on
Last release 3 days ago
21 Aug 2026
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 106 of 106 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
188 releases · first in 2020
10 releases in the last 12 months
see the full history below
Release timeline
188 releases · Jun 2020 to Aug 2026Releases
latest 60 of 188-
v1.28.521 Aug 2026Release notes
Open source →What's Changed
- sen: fix panic on malformed '+' string concatenation by @ChrisJr404 in #226
New Contributors
- @ChrisJr404 made their first contribution in #226
Full Changelog: v1.28.4...v1.28.5
Release notes
Open source →Fixed
- Panic on malformed
+string concatenation fixed thanks to @ChrisJr404.
-
v1.28.408 Aug 2026Release notes
Open source →Fixed
- JSONPath slice for
[::2]against an empty slice works correctly now.
- JSONPath slice for
-
v1.28.331 Jul 2026Release notes
Open source →Release notes
Open source →Fixed
- JSONPath slices support negative ranges correctly now and the slice end values are exclusive to match the JSONPath specification.
-
v1.28.205 Jul 2026Release notes
Open source →What's Changed
- fix: dot-shorthand colon rejection by @mattrighetti in #221
- Reduce jp.Parse allocations by @trevorprater in #222
New Contributors
- @mattrighetti made their first contribution in #221
- @trevorprater made their first contribution in #222
Full Changelog: v1.28.1...v1.28.2
-
v1.28.2-0.20260527132827-981bb7eb29ba27 May 2026 pre-releaseNothing published for this version
-
v1.28.117 Mar 2026Release notes
Open source →Changed
- Removed the dependency on go1.22 caused by the
alt.Checksum()implementation which now avoidstime.AppendBinary().
- Removed the dependency on go1.22 caused by the
-
v1.28.016 Jan 2026Release notes
Open source → -
v1.27.010 Nov 2025Release notes
Open source →What's Changed
- Added discover package.
- Added discover option to the oj application.
Full Changelog: v1.26.11...v1.27.0
Release notes
Open source →Added
- Added discover package.
- Added discover option to the oj application.
-
v1.26.1104 Nov 2025Release notes
Open source → -
v1.26.1030 Aug 2025Release notes
Open source → -
v1.26.918 Aug 2025Release notes
Open source →Fixed
- Filtering now supports typed core type such as
type Color stringthans to @rdumont
- Filtering now supports typed core type such as
-
v1.26.829 Jun 2025Release notes
Open source →Fixed
- Fixed support for pointers to slice and pointer to value thanks to @edward-frankieone.
-
v1.26.8-0.20250627001307-866247a046af27 Jun 2025 pre-releaseNothing published for this version
-
v1.26.723 Jun 2025Release notes
Open source →Fixed
- Fixed the bleed over of omitempty in struct tags. Issue #205.
- Fixed encoding anonymous interface in structs. Issue #115
- Bare @.x style existence checks in filters not work correctly.
-
v1.26.7-0.20250609221605-932117a1668209 Jun 2025 pre-releaseNothing published for this version
-
v1.26.7-0.20250609003021-bf0aa40483e809 Jun 2025 pre-releaseNothing published for this version
-
v1.26.628 May 2025Release notes
Open source →Fixed
- Types derived from core type such as
type Quux intnow alt.Decompose correctly.
- Types derived from core type such as
-
v1.26.513 May 2025Release notes
Open source →Fixed
- User defined unary operations for jp scripts are now handled correctly.
-
v1.26.427 Apr 2025 -
v1.26.306 Apr 2025Release notes
Open source →Changed
- Updated linter configuration file for golangci-lint v2
- Backed off the go.mod go version to the minimum required of v1.18.
-
v1.26.209 Mar 2025 -
v1.26.109 Jan 2025Release notes
Open source →Fixed
- Fixed issue #197 where nested array elements were not filled when using
oj.Match().
- Fixed issue #197 where nested array elements were not filled when using
-
v1.26.031 Dec 2024Release notes
Open source →Added
- Support for non-selector scripts added to the jp package. See the
jp.CompileScriptvariable along with theProcfragment type andProcedureinterface.
- Support for non-selector scripts added to the jp package. See the
-
v1.25.2-0.20241227020129-08c8664aa5b227 Dec 2024 pre-releaseNothing published for this version
-
v1.25.126 Dec 2024 -
v1.25.026 Oct 2024Release notes
Open source →Added
- The
Expr.Walk()function was added. Similar to jp.Walk but walk expression matches.
- The
-
v1.24.2-0.20241026220240-990adf517df626 Oct 2024 pre-releaseNothing published for this version
-
v1.24.115 Sep 2024Release notes
Open source →Fixed
- Fixed reflection map key matches when keys are string derivitives.
-
v1.24.1-0.20240915152308-0844e7e41bf815 Sep 2024 pre-releaseNothing published for this version
-
v1.24.1-0.20240914215454-c6f982e7e39514 Sep 2024 pre-releaseNothing published for this version
-
v1.24.1-0.20240830170429-e422fbda314230 Aug 2024 pre-releaseNothing published for this version
-
v1.24.010 Aug 2024Release notes
Open source →Added
- Added the
jp.PathMatchfunction that compares a normalized JSONPath with a target JSONPath. - Added
jp.MatchHandlera TokenHandler that can be used to build a path and data while processing a JSON document. - Added
oj.Matchandsen.Matchfunctions.
- Added the
-
v1.23.1-0.20240810000637-19c93df13a1810 Aug 2024 pre-releaseNothing published for this version
-
v1.23.007 Jul 2024Release notes
Open source →Added
- New script functions can now be added with
jp.RegisterUnaryFunction()andjp.RegisterBinaryFunction().
- New script functions can now be added with
-
v1.22.2-0.20240707212426-d291cb2e8b0f07 Jul 2024 pre-releaseNothing published for this version
-
v1.22.123 Jun 2024 -
v1.22.1-0.20240623163508-9dccb048ad9e23 Jun 2024 pre-releaseNothing published for this version
-
v1.22.1-0.20240528211055-a3e5bee1a7bc28 May 2024 pre-releaseNothing published for this version
-
v1.22.1-0.20240527212555-089c3eae55f227 May 2024 pre-releaseNothing published for this version
-
v1.22.1-0.20240523142511-7a61575c0a2d23 May 2024 pre-releaseNothing published for this version
-
v1.22.028 Apr 2024Release notes
Open source →Added
- Added support for C style comment /* */ in the SEN parser.
Fixed
- Comments are the start of a SEN document now parses without error.
-
v1.21.6-0.20240428202721-aede9eca61ca28 Apr 2024 pre-releaseNothing published for this version
-
v1.21.6-0.20240411211313-6a8ab9f8bc1811 Apr 2024 pre-releaseNothing published for this version
-
v1.21.511 Apr 2024 -
v1.21.429 Feb 2024 -
v1.21.4-0.20240229133405-0358624bf75d29 Feb 2024 pre-releaseNothing published for this version
-
v1.21.4-0.20240228224040-05f57dae767028 Feb 2024 pre-releaseNothing published for this version
-
v1.21.321 Feb 2024 -
v1.21.3-0.20240221001226-a1754591ad7c21 Feb 2024 pre-releaseNothing published for this version
-
v1.21.215 Feb 2024Release notes
Open source →Fixed
- Reworked the jp equation parser to eliminate some parsing issues.
- Fixed wildcards in filters so that if any value is true a match is
returned. As an example, a path of
a[?(@.b[*].c == 2)].b[0]might match multiple values ofcin arrayb. If any of the values is 2 then it is considered a match.
-
v1.21.2-0.20240215012733-e193e476453115 Feb 2024 pre-releaseNothing published for this version
-
v1.21.103 Feb 2024Release notes
Open source →Fixed
- Fixed script parsing when padded with spaces.
- Fixed script parsing for negation without parenthesis.
-
v1.21.1-0.20240203030641-ae29fcad167203 Feb 2024 pre-releaseNothing published for this version
-
v1.21.018 Dec 2023Release notes
Open source →Added
- Added the Expr function
BracketStringto force the use of bracket notation to for normalized paths as described by the draft IETF JSONPath document in section 2.7. - Added
jp.Expr.Locate()function that returns normalized paths for JSONPath expression.
Fixed
- Unmarshal now supports arrays such as
[4]int.
- Added the Expr function
-
v1.20.4-0.20231218231753-f563a34bea6218 Dec 2023 pre-releaseNothing published for this version
-
v1.20.4-0.20231214004438-3af4d72e63b714 Dec 2023 pre-releaseNothing published for this version
-
v1.20.309 Nov 2023Release notes
Open source →Added
- Added an option to jp.Walk to just callback on leaves making the function more useable.
-
v1.20.3-0.20231109235652-4f986733b25409 Nov 2023 pre-releaseNothing published for this version
-
v1.20.230 Oct 2023 -
v1.20.2-0.20231030232309-7e79b01fda9430 Oct 2023 pre-releaseNothing published for this version