I am working with the following JSON string
{
\"transactions\":
[
{
\"paymentcharge\":\"0.0\",
\"amount\":352,
\"id\":13418,
\"shippingc
Create a class as below
By creating the list of class 'clsSalesTran' and a variable for 'Count'
Note: JsonProperty is mandatory from your Json String
public class SalesTransactions
{
[JsonProperty("transactions")]
public List transactions {get;set;}
public int count{get;set;}
}
Then you may use this class as below to deserialize
SalesTransactions st = JsonConvert.DeserializeObject(inputString)
Use the Deserialized object as below
double paymentcharge = st.transactions[0].paymentcharge;