Querying JSON using SelectTokens? With Newtonsoft.Json.Linq in C#
问题 I'm trying to make use of Netwonsoft.JSON.Linq in C#, to change the "statusCode" values in the following JSON: { "disbursements":[ { "id":"1f337641", "contactId":"f5eb2", "statusCode":166000005, "amount":8, "category":166000001 }, { "id":"027a4762", "contactId":"f5eb2038", "statusCode":166000000, "amount":4000, "category":166000000 } ] } So, inside the JSON data is: "disbursements" which is JSON array. I have to change the "statusCode" of each item in the array to 166000005 . I'm able to