Skip to content

Commit 45d075a

Browse files
committed
missed this file
1 parent 2f99002 commit 45d075a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)