Re:Show HN: JSONSchema to TypeScript compiler
by akst on Wednesday April 26, 2017 @07:11AM
(#14202075)
You can probably encode a directed graph by storing the nodes as values in a dictionary which track which nodes they point too, and the keys of the dictionary would be the node identifiers. If you represent it a specific way in your program, just perform a normalisation phase after decoding, and vice versa for encoding.
[ Parent
| on HN ]