how about dynamics, the fastest way I see is this:
dynamic myObject = JsonConvert.DeserializeObject<dynamic>(output);
decimal Amount = Convert.ToDecimal(myObject.Amount);
string Message = myObject.Message;
Note:
You will need Newtonsoft.json.dll reference
More Related Contents:
- c# asp.net delete last comma [closed]
- How to Convert JSON object to Custom C# object?
- Parse JSON in C#
- JavaScriptSerializer – JSON serialization of enum as string
- How to create JSON string in C#
- How do I create a Dto in C# Asp.Net from a fairly complex Json Response
- Serializing a list to JSON
- Easiest way to parse JSON response
- Failed to serialize the response in Web API with Json
- “Self Referencing Loop Detected” exception with JSON.Net
- Convert JSON String to JSON Object c#
- Json.NET serialize object with root name
- What is the difference between PreserveReferencesHandling and ReferenceLoopHandling in Json.Net?
- Make ASP.NET WCF convert dictionary to JSON, omitting “Key” & “Value” tags
- Proper JSON serialization in MVC 4
- How to not serialize the __type property on JSON objects
- How to get JSON response from a 3.5 asmx web service
- how to convert NameValueCollection to JSON string?
- Cannot deserialize the current JSON array (e.g. [1,2,3]) into type
- Basic Simple Asp.net + jQuery + JSON example
- How to natively enable JSONP for existing WCF service?
- asp.net asmx web service returning xml instead of json
- Parsing a JSON array using Json.Net
- How to map JSON to C# Objects
- pass jquery json into asp.net httphandler
- ASP.NET WebService is Wrapping my JSON response with XML tags
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- ASP.Net URLEncode Ampersand for use in Query String
- User in Entity type MVC5 EF6
- Asp .NET Button – OnClientClick=”return function()” vs OnClientClick=”function()”