Skip to content

read_metadata: use JSON for reading metadata to preserve order#5914

Merged
benlorenz merged 1 commit intomasterfrom
bl/fixdoctests
Apr 2, 2026
Merged

read_metadata: use JSON for reading metadata to preserve order#5914
benlorenz merged 1 commit intomasterfrom
bl/fixdoctests

Conversation

@benlorenz
Copy link
Copy Markdown
Member

@benlorenz benlorenz commented Apr 2, 2026

Fixes failing doctests with JSON.jl version 1.5.0 (which added a default sorting, for objects which are not native JSON Objects).

Adding a sort_keys keyword or changing the output would make it dependent on the JSON version, this way it should be independent.
Using lazy parsing to avoid materializing the whole file as an object.

using lazy parsing to avoid reading the full file
fixes doctests with JSON.jl version 1.5.0
@benlorenz benlorenz added backport 1.7.x release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes serialization labels Apr 2, 2026
@benlorenz benlorenz merged commit 862f791 into master Apr 2, 2026
37 of 40 checks passed
@benlorenz benlorenz deleted the bl/fixdoctests branch April 2, 2026 12:18
Kazak-11 pushed a commit to Kazak-11/Oscar.jl that referenced this pull request Apr 2, 2026
)

using lazy parsing to avoid reading the full file
fixes doctests with JSON.jl version 1.5.0
benlorenz added a commit that referenced this pull request Apr 8, 2026
using lazy parsing to avoid reading the full file
fixes doctests with JSON.jl version 1.5.0

(cherry picked from commit 862f791)
@benlorenz benlorenz mentioned this pull request Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.7.x done release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes serialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants