public override string ToString() { JsonObject json = new JsonObject(); JsonArray nodes_json = new JsonArray(); foreach (KeyValuePair <Guid, GraphNode> graph_node in nodes) { nodes_json.AddRaw(new JsonObject(graph_node.Value.ToString())); } json.PutRaw("nodes", nodes_json); return(json.ToString()); }