jsonpak
jsonpak copied to clipboard
Packed ASTs for compact and efficient JSON representation, with JSON Pointer, JSON Patch support.
Needs extensive refactoring, the tests don't pass yet.
Maybe some workflows (that involve a lot of vertical accesses) can be sped up by introducing a ReadOnlyJsonTree, that uses a simple Table[string, NodePos] that stores the splitFile.dir part of...
suggested transformation: ```nim type Fruit = enum Banana, Apple Bar = object case kind: Fruit of Banana: bad: float banana: int of Apple: apple: string proc initFromJson(dst: var Bar; tree:...
Formal rules for constructing a schema: ### Top-level Schema Structure 1. **Schema Definition**: - A schema is defined using the `defineSchema` macro followed by a schema name. - The schema...
From the forum [reply](https://forum.nim-lang.org/t/9231#73823) > Your implementation should inline data elements that fit in the about 3 bytes in the payload. For example: Numbers like 0, 1, 2, 3 are...
Ideally `parseJson` should return `TaintedJsonTree` a similar to the now removed from the stdlib `type TaintedString* = distinct string ## a distinct string type that is tainted` , which marks...
It could potentially become much faster than add. Code like this should be accepted: ```nim result = %*{ "id": id, "active": r.rand(0..1) == 0, "name": "node" & $id, "kind": "NODE",...
https://seriot.ch/projects/parsing_json.html
This prototype has proven that an alternative implementation of JSON data structure is possible that offers a low memory footprint and follows standards, however in order to be scalable it...