diff options
Diffstat (limited to 'lib/pure/marshal.nim')
-rwxr-xr-x | lib/pure/marshal.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/marshal.nim b/lib/pure/marshal.nim index 354d70a71..8b062ef26 100755 --- a/lib/pure/marshal.nim +++ b/lib/pure/marshal.nim @@ -47,7 +47,7 @@ proc storeAny(s: PStream, a: TAny, stored: var TIntSet) = if i > 0: s.write(", ") storeAny(s, a[i], stored) s.write("]") - of akObject, akPureObject, akTuple: + of akObject, akTuple: s.write("{") var i = 0 for key, val in fields(a): @@ -138,7 +138,7 @@ proc loadAny(p: var TJsonParser, a: TAny, t: var TTable[biggestInt, pointer]) = else: raiseParseErr(p, "") else: raiseParseErr(p, "'[' expected for a seq") - of akObject, akPureObject, akTuple: + of akObject, akTuple: if a.kind == akObject: setObjectRuntimeType(a) if p.kind != jsonObjectStart: raiseParseErr(p, "'{' expected for an object") next(p) |