0
{ "posOrder":
{ "No": 1234,
"Operator": 18,
"ECR-Name": "Imbissbude ",
"Receipt": {
"PLUs": [
{ "Number": 31, "Name": "Pommes", "Price": 150, "Qty": 2 },
{ "Number": 112, "Name": "Coke", "Price": 200, "Qty": 1 } ]
}
}
}

this is my json script. i want to get each field and its value if only the class name="posOrder". ie find filed"no" and its value, field plus and its inner fileds and values. etc.

2 Answers 2

1

This library can help you with that: Json.NET And then you can use LINQ to find things: Example

Sign up to request clarification or add additional context in comments.

Comments

0

Another option is Microsoft's System.Web.Extensions.dll. There is a JSON parser in the System.Web.Script.Serialization namespace.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.