Commit a5d3599
Add structlike(::Type{BigInt/BigFloat}) = false (#38)
BigInt and BigFloat are mutable structs in Julia, but they should be
treated as primitive/non-struct types for serialization purposes.
Without this, packages like JSON.jl fail when trying to parse numbers
into BigInt or BigFloat because StructUtils routes them to makestruct
instead of lift.
Fixes JuliaIO/JSON.jl#424
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 27df92b commit a5d3599
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
329 | 338 | | |
330 | 339 | | |
331 | 340 | | |
| |||
0 commit comments