scalax.collection.io.json.descriptor
Enables Graph for Scala JSON export/import to handle node references in JSON edge entries.
Enables Graph for Scala JSON export/import to handle node references in JSON edge entries. Without establishing such references, JSON edge entries would have to contain all node data what would make JSON texts representing graphs explode in length.
Please exercise great care when designing the id method to return unique keys.
a node of type N
for which its unique id is to be returned.
You can safely match node
to the actual type argument N
.
Node descriptor extracting a String from any JValue and decomposing nodes of any type to a JString. This object serves mainly test purposes.