| 110 | } |
| 111 | |
| 112 | void 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> |