toJson

fun <T> TreeLayoutResult<T>.toJson(nodeToKey: (T) -> String): String(source)

Serializes a TreeLayoutResult to a JSON string.

Return

A JSON string representing the layout result.

Parameters

nodeToKey

Converts a node to its string key for serialization.