Module jsonsupport

Search:
Group by:

Types

JsonReadable = concept x
    var j: JsonNode
    parseFromJson(j, type(x)) is type(x)
  Source Edit
JsonWritable = concept x
    renderToJson(x) is JsonNode
  Source Edit

Procs

proc ok(j: JsonNode): Handler {.
raises: [], tags: []
.}
  Source Edit
proc ok[A: JsonWritable](a: A): Handler
  Source Edit
proc jsonBody(p: proc (j: JsonNode): Handler): Handler {.
raises: [], tags: []
.}
  Source Edit
proc jsonBody[A: JsonReadable](p: proc (a: A): Handler): Handler
  Source Edit