/* * Copyright (C) 2007-2013 Xagasoft, All rights reserved. * * This file is part of the libgats library and is released under the * terms of the license contained in the file LICENSE. */ #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; }