Hi, Try to use Wt::Json::Object children = result.get("test2");
and then treat children as an Object: Wt::WString level1 = children.get("level1"); 2012/1/19 Frédéric Logier <fre...@gmail.com>: > Hi, > I try to use Wt::json. This example > http://www.webtoolkit.eu/wt/doc/reference/html/group__json.html#details > works well, but my problem is on my json file : > > {"test":"ok","test2":{"level1":"ok","level2":"ok"}} > > I can get the test value : WString s = result.get("test"); > > But I don't know how to get the test2 value... I tried with Wt::Json::Array > children = result.get("test2"); but it failed : > [error] "Wt: Fatal error: Type error: value is Object, expected Array" > > any help ? > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest