holo_json/read_stdlib

Source   Edit  

read hooks for stdlib types

Procs

proc fromJson(s: string): JsonNode {.inline, ...raises: [Exception, JsonParseError,
    JsonValueError, ValueError], tags: [RootEffect], forbids: [].}
Takes json parses it into JsonNodes. Source   Edit  
proc read(format: JsonReadFormat; reader: JsonReaderArg; v: var JsonNode) {....raises: [
    Exception, JsonParseError, JsonValueError, Exception, JsonParseError,
    JsonValueError, ValueError], tags: [RootEffect], forbids: [].}
Parses a regular json node. Source   Edit  
proc read[K: not (string | enum); V](format: JsonReadFormat;
                                     reader: JsonReaderArg;
                                     tab: var OrderedTable[K, V])
Parse a normal table. Source   Edit  
proc read[K: not (string | enum); V](format: JsonReadFormat;
                                     reader: JsonReaderArg; tab: var Table[K, V])
Parse a normal table. Source   Edit  
proc read[K: not (string | enum)](format: JsonReadFormat; reader: JsonReaderArg;
                                  tab: var CountTable[K])
Parse a normal table. Source   Edit  
proc read[K: string | enum; V](format: JsonReadFormat; reader: JsonReaderArg;
                               v: var OrderedTable[K, V])
Parse an object. Source   Edit  
proc read[K: string | enum; V](format: JsonReadFormat; reader: JsonReaderArg;
                               v: var Table[K, V])
Parse an object. Source   Edit  
proc read[K: string | enum](format: JsonReadFormat; reader: JsonReaderArg;
                            v: var CountTable[K])
Parse an object. Source   Edit  
proc read[T](format: JsonReadFormat; reader: JsonReaderArg; v: var HashSet[T])
Parses HashSet. Source   Edit  
proc read[T](format: JsonReadFormat; reader: JsonReaderArg; v: var Option[T])
Parse an Option. Source   Edit  
proc read[T](format: JsonReadFormat; reader: JsonReaderArg; v: var OrderedSet[T])
Parses OrderedSet. Source   Edit  
proc read[T](format: JsonReadFormat; reader: JsonReaderArg; v: var set[T])
Parses the built-in set type. Source   Edit