Class TreeSerializer
java.lang.Object
com.knezevic.edaf.v3.repr.grammar.serialize.TreeSerializer
Serializes derivation trees into structured JSON payloads.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoJson(DerivationTree tree) Converts tree map representation to pretty JSON.toMap(DerivationTree tree) Converts tree to nested map suitable for API payloads.
-
Constructor Details
-
TreeSerializer
public TreeSerializer()
-
-
Method Details
-
toMap
Converts tree to nested map suitable for API payloads. -
toJson
Converts tree map representation to pretty JSON.
-