src/jsonpak/extra

Source   Edit  

Procs

proc contains(tree: JsonTree; path: JsonPtr): bool {.inline,
    ...raises: [UsageError, SyntaxError], tags: [], forbids: [].}
Checks if key exists in n. Source   Edit  
proc dump(tree: JsonTree; path: JsonPtr): string {.
    ...raises: [UsageError, SyntaxError, PathError], tags: [], forbids: [].}
Dumps the JSON tree to a string. Source   Edit  
proc extract(tree: JsonTree; path: JsonPtr): JsonTree {.
    ...raises: [UsageError, SyntaxError, PathError], tags: [], forbids: [].}
Extracts the JSON tree at path from tree. Source   Edit  
proc kind(tree: JsonTree; path: JsonPtr): JsonNodeKind {.inline,
    ...raises: [UsageError, SyntaxError, PathError], tags: [], forbids: [].}
Source   Edit  
proc len(tree: JsonTree; path: JsonPtr): int {.
    ...raises: [UsageError, SyntaxError, PathError], tags: [], forbids: [].}
Source   Edit