#include "gats/types.h" #include using namespace Bu; int main( int argc, char *argv[] ) { Gats::Object *pBase = Gats::Object::strToGats("{\"Thing\": 3.14159, \"bool\": true, \"list\":[\"string\",44,{\"Stuff\":{\"list\":[],\"what?\":false}}]}"); sio << *pBase << sio.nl; Gats::Object *pNew = pBase->clone(); delete pBase; sio << *pNew << sio.nl; delete pNew; return 0; }