MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / saveNodeToJsonFile

Method saveNodeToJsonFile

Source/NodeSerializer.cpp:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void NodeSerializer::saveNodeToJsonFile(const std::string_view filename, ax::Node* rootNode)
113{
114 ordered_json j;
115 NodeSerializer::to_json(j, rootNode);
116
117 // Save the JSON object to a file
118 ax::FileUtils::getInstance()->writeStringToFile(j.dump(indentation), filename);
119}
120
121#if (AX_TARGET_PLATFORM == AX_PLATFORM_WIN32)
122#include <windows.h>

Callers

nothing calls this directly

Calls 2

to_jsonFunction · 0.85
dumpMethod · 0.80

Tested by

no test coverage detected