@@ -33,21 +33,8 @@ void Start()
3333 LogSystem . InstallDefaultReactors ( ) ;
3434
3535 MessageResponse messageResponse = JsonConvert . DeserializeObject < MessageResponse > ( responseJson ) ;
36- //Dictionary<string, object> e = Json.Deserialize(responseJson) as Dictionary<string, object>;
37- //Dictionary<string, object> context = e["context"] as Dictionary<string, object>;
38- //Dictionary<string, object> skills = context["skills"] as Dictionary<string, object>;
39- //Dictionary<string, object> main_skill = skills["main skill"] as Dictionary<string, object>;
40- //Dictionary<string, object> user_defined = main_skill["user_defined"] as Dictionary<string, object>;
4136
42- //string name = user_defined["name"] as string;
43-
44- //var user_defined = messageResponse.Context.Skills["main skill"]["user_defined"].ToString();
45- //var uDefinedObject = JsonConvert.DeserializeObject<Dictionary<string, object>>(user_defined);
46-
47- //Log.Debug("GenericSerialization", "main skill: {0}", uDefinedObject["name"]);
48- //Log.Debug("GenericSerialization", "test: {0}", messageResponse);
49-
50- var name = messageResponse . Context . Skills [ "main skill" ] [ "user_defined" ] [ "name" ] . ToString ( ) ;
37+ var name = messageResponse . Context . Skills . Get ( "main skill" ) . UserDefined [ "name" ] . ToString ( ) ;
5138 Log . Debug ( "GenericSerialization" , "name: {0}" , name ) ;
5239
5340 }
0 commit comments