Thank you very much. Consider this JSON which has nested arrays:
string strJSON =
"{\"topic\":\"history\",\"msg\":\"test\",\"ts\":1402589852273,\"sq\":1123,\"req\":22,\"all\":[[\"rid\",\"cid\",\"rtype\",\"begin\",\"period\",\"tlbl\",\"note\",\"trunk\",\"aid\",\"aid-friendly\",\"secure\",\"extra\",\"people\",\"trail\",\"minf\",\"begin-local\",2090,\"00020000-0007-51a6-25ba-0010490cafd6\",2,1400173785238,6,1400173785238,\"\",\"\",\"\",\"\",false,\"\",[[\"lbl\",\"num\",\"num-canonical\"],[\"person2\",\"503\",\"503\"]],[[\"res\",\"period\",\"party-lbl\",\"party-num\",\"party2-lbl\",\"party2-num\"],[17,0,\"person2\",\"503\",\"JohnAppleseed\",\"501\"],[-3,6,\"person2\",\"503\",\"\",\"\"],[-2,6,\"\",\"\",\"\",\"\"]],{\"cid\":4153296634},1400148585238,2089,\"00020000-0005-51a6-25ba-0010490cafd6\",0,1400173737020,22,1400173737020,\"\",\"\",\"\",\"\",false,\"\",[[\"lbl\",\"num\",\"numS\"],[\"C\",\"502\",\"502\"]],[[\"res\",\"period\",\"party-lbl\",\"party-num\",\"party2-lbl\",\"party2-num\"],[17,0,\"JohnAppleseed\",\"501\",\"C\",\"502\"],[-2,
22,\"\",\"\",\"\",\"\"]],{\"cid\":26605976},1400148537020,2088,\"00020000-0004-51a6-25ba-0010490cafd6\",0,1400173613918,8,1400173613918,\"\",\"\",\"\",\"\",false,\"\",[[\"lbl\",\"num\",\"num-canonical\"],\"C\",\"502\",\"502\"]],[[\"res\",\"period\",\"party-lbl\",\"party-num\",\"party2-lbl\",\"party2-num\"],[17,0,\"JohnAppleseed\",\"501\",\"C\",\"502\"],[-3,8,\"C\",\"502\",\"\",\"\"],[-2,8,\"\",\"\",\"\",\"\"]],{\"cid\":110744295},1400148413918]]}";
Converting it to dynamic using JsonConvert.Import(strJSON) gives a dynamic object with
Json.JsonObject in there. It has top level recs as a JsonArray but I was expecting a standard Array of dynamic objects. Basically, in the return I need to have dynamic objects with standard .NET types only and not any Jayrock specific types. The reason being I am using Jayrock inside a class library that takes care of JSON parsing using Jayrock and hides that implementation detail from the clients using the library. The client needs to see only dynamic objects which contain standard .NET objects, arrays and all.
Does that make sense and is it possible using Jayrock?
Thanks again and regards