Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix struct type for number #100

Merged
merged 1 commit into from
Sep 21, 2023
Merged

fix struct type for number #100

merged 1 commit into from
Sep 21, 2023

Conversation

GiggleLiu
Copy link
Contributor

@GiggleLiu GiggleLiu commented Sep 21, 2023

Before the fix, JSON3 tries to parse a complex number to real type.
After the fix, the behavior is correct:

julia> JSON3.write(1+2im)
"{\"re\":1,\"im\":2}"

The JSON number type should correspond to the Julia Real number type.

Can we tag a patch version after the fix? Thanks!

Copy link
Member

@quinnj quinnj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; this makes sense to me.

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9cca137) 75.31% compared to head (a11d910) 75.31%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #100   +/-   ##
=======================================
  Coverage   75.31%   75.31%           
=======================================
  Files           2        2           
  Lines         401      401           
=======================================
  Hits          302      302           
  Misses         99       99           
Files Changed Coverage Δ
src/StructTypes.jl 74.07% <100.00%> (ø)

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

@quinnj
Copy link
Member

quinnj commented Sep 21, 2023

The docs failure is the new Documenter 1.0 release; I'll fix it separately.

@quinnj quinnj merged commit 47c4691 into JuliaData:main Sep 21, 2023
5 of 7 checks passed
@lukas-weber lukas-weber mentioned this pull request Mar 18, 2024
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.

None yet

2 participants