We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f99002 commit 45d075aCopy full SHA for 45d075a
src/serialization/DFGStructStyles.jl
@@ -0,0 +1,9 @@
1
+struct DFGJSONStyle <: JSON.JSONStyle end
2
+
3
+StructUtils.structlike(::DFGJSONStyle, ::Type{Base.RefValue{Int}}) = false
4
+StructUtils.lower(::DFGJSONStyle, x::Base.RefValue{Int}) = x[]
5
+StructUtils.lift(::DFGJSONStyle, ::Type{Base.RefValue{Int}}, x) = Ref(x), nothing
6
7
+StructUtils.structlike(::DFGJSONStyle, ::Type{TimeDateZone}) = false
8
+StructUtils.lower(::DFGJSONStyle, x::TimeDateZone) = string(x)
9
+StructUtils.lift(::DFGJSONStyle, ::Type{TimeDateZone}, x) = TimeDateZone(x), nothing
0 commit comments