nim-json-serialization/json_serialization/types.nim

19 lines
290 B
Nim

import
serialization/errors
export
errors
type
JsonMode* = enum
Relaxed
Portable
JsonError* = object of SerializationError
const
defaultJsonMode* = JsonMode.Relaxed
minPortableInt* = -9007199254740991 # -2**53 + 1
maxPortableInt* = 9007199254740991 # +2**53 - 1