I'm struggling to get a usable string from a Variant to either char* or std::string
reference to post 8:
https://mcmap.net/q/1244/godot-gd4-gdextension-return-variant-of-std-vector
Variant GDXml2Json::test(Variant vin)
{
auto type = vin.get_type();
if(type==4){
// String
UtilityFunctions::print(vin);
String s = vin.stringify(); //.get_data();
UtilityFunctions::print(s);
PackedByteArray ba = s.to_utf32_buffer();
std::u32string xml = std::u32string(ba);
etc...
std::string xml = s;