Skip to content

Conversation

@mortenpi
Copy link
Member

@mortenpi mortenpi commented Dec 1, 2025

Support JSON 1.x+ by:

  • Accepting ::AbstractDict in functions that take JSON as an input.
  • Checking for AbstractDict instead of Dict in places where we check for the return types.

Since JSON.Object <: AbstractDict, this should work.

Just in case, also add a CI workflow to test with JSON 0.21, to make sure we do not regress there. At some point, we probably should drop JSON 0.21/22 though, and adopt JSON.Object more explicitly in the internals.

Close #120.

@mortenpi mortenpi mentioned this pull request Dec 1, 2025
@mortenpi mortenpi requested a review from tanmaykm December 1, 2025 10:34
@tanmaykm tanmaykm merged commit cada613 into main Dec 1, 2025
23 of 24 checks passed
@tanmaykm tanmaykm deleted the mp/json-1 branch December 1, 2025 13:32
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.

3 participants