We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1925c commit 176d7d1Copy full SHA for 176d7d1
src/qualitative_networks.jl
@@ -460,8 +460,10 @@ end
460
function JSON.json(qn::QualitativeNetwork)
461
return JSON.json(qn_to_bma_dict(qn); omit_empty = false)
462
end
463
-JSON.json(io_or_filename, qn::QualitativeNetwork) =
+JSON.json(io_or_filename, qn::T) where {T<:QualitativeNetwork} =
464
JSON.json(io_or_filename, qn_to_bma_dict(qn); omit_empty = false)
465
+JSON.json(io::IO, qn::T) where {T<:QualitativeNetwork} =
466
+ JSON.json(io, qn_to_bma_dict(qn); omit_empty = false)
467
468
"""
469
$(TYPEDSIGNATURES)
0 commit comments