Skip to content

Implement json_eq_or_diff using jq and diff - #1

Merged
plicease merged 3 commits into
mainfrom
graham/impl
Sep 29, 2026
Merged

plicease merged 3 commits into
mainfrom
graham/impl

Conversation

@plicease

Copy link
Copy Markdown
Member

Canonicalize both JSON documents with jq (>= 1.7, sorted keys) and compare them with diff -U, so the JSON is never decoded in Perl. Failures report a unified diff clipped to max_lines (default 50).

  • inc/mymm.pl checks for jq >= 1.7 and diff at configure time
  • CI tests Perl 5.42 against jq 1.7.1 and 1.8.2
  • require @author::Plicease 2.79 so the static workflow runs

plicease and others added 3 commits September 29, 2026 12:56
Canonicalize both JSON documents with jq (>= 1.7, sorted keys) and
compare them with diff -U, so the JSON is never decoded in Perl.
Failures report a unified diff clipped to max_lines (default 50).

- inc/mymm.pl checks for jq >= 1.7 and diff at configure time
- CI tests Perl 5.42 against jq 1.7.1 and 1.8.2
- require @author::Plicease 2.79 so the static workflow runs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@plicease
plicease merged commit 7185550 into main Sep 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant