| 88 | |
| 89 | |
| 90 | void JSONDelta::writePath(pathItem *path) { |
| 91 | if (!path) |
| 92 | return; |
| 93 | writePath(path->parent); |
| 94 | path->parent = nullptr; |
| 95 | if (!path->isOpen) { |
| 96 | _encoder->beginDictionary(); |
| 97 | path->isOpen = true; |
| 98 | } |
| 99 | _encoder->writeKey(path->key); |
| 100 | } |
| 101 | |
| 102 | |
| 103 | // Main encoder function. Called recursively, traversing the hierarchy. |
nothing calls this directly
no test coverage detected