17 lines
409 B
Nim
17 lines
409 B
Nim
import
|
|
serialization, json_serialization/[reader, writer]
|
|
|
|
export
|
|
serialization, reader, writer
|
|
|
|
serializationFormat Json,
|
|
Reader = JsonReader,
|
|
Writer = JsonWriter,
|
|
PreferedOutput = string,
|
|
mimeType = "application/json"
|
|
|
|
template supports*(_: type Json, T: type): bool =
|
|
# The JSON format should support every type
|
|
true
|
|
|