Skip to content

Port JSONTables to JSON.jl 1.x - #29

Merged
quinnj merged 2 commits into
mainfrom
port-json-1x
Oct 14, 2026
Merged

quinnj merged 2 commits into
mainfrom
port-json-1x

Conversation

@quinnj

@quinnj quinnj commented Oct 14, 2026

Copy link
Copy Markdown
Member

Replaces JSON3 + StructTypes with JSON.jl 1.x.

  • jsontable(source) reads with JSON.parse; objecttable / arraytable write with JSON.json.
  • jsontable accepts any AbstractDict of column vectors or AbstractVector of AbstractDict rows, keyed by String or Symbol, so parsed JSON3 objects still work.
  • Column element types are computed from the values (JSON.parse returns Vector{Any}), so schemas stay concrete, e.g. Int64 or Union{Missing, Float64}.
  • Keyword arguments to jsontable(source; kw...) now go to JSON.parse instead of JSON3.read.
  • Julia floor is now 1.10 (required by JSON.jl 1.x); CI minimum moves from 1.0 to lts.

Tested locally: 58/58 on Julia 1.12 with JSON 1.10.0 and with JSON 1.0.0 (compat floor), and on Julia 1.10. Also checked JSON3 inputs, DataFrames round-trips, column order on write, and a 300-column write.

🤖 Generated with Claude Code

Read with JSON.parse and write with JSON.json; drop the JSON3 and
StructTypes dependencies. jsontable now accepts any AbstractDict of
column vectors or AbstractVector of AbstractDict rows, keyed by String
or Symbol, so already-parsed JSON3 objects keep working. Column types
are computed from the values, since JSON.parse returns Vector{Any}.

JSON.jl 1.x requires Julia 1.10, so the Julia floor and the CI minimum
move to 1.10 (lts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.93%. Comparing base (042e40c) to head (9362d8c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
+ Coverage   93.81%   96.93%   +3.12%     
==========================================
  Files           1        1              
  Lines          97       98       +1     
==========================================
+ Hits           91       95       +4     
+ Misses          6        3       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@quinnj
quinnj merged commit fc462a6 into main Oct 14, 2026
6 checks passed
@quinnj
quinnj deleted the port-json-1x branch October 14, 2026 05:22
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