CSharp · Console
using System;
public class Program
{
public static void Main()
{
var json = "{\r\n \"id\": \"58e50b82-50b1-4f29-a2e8-a9a544013255\",\r\n \"timestamp\": \"2018-06-20T18:00:12.935Z\",\r\n \"lang\": \"pt-br\",\r\n \"result\": {\r\n \"source\": \"agent\",\r\n \"resolvedQuery\": \"me conte uma novidade\",\r\n \"action\": \"\",\r\n \"actionIncomplete\": false,\r\n \"parameters\": {\r\n \"news\": \"novidade\"\r\n }\r\n}\r\n}";
dynamic obj = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
Console.WriteLine(obj.id);
Console.WriteLine(obj.timestamp);
}
}