Train
Train

Reputation: 3516

JObject.parse not working

I am using JObject.Parse to parse a JSON string. The value is "parameterValues={\r\n \"DE:Actual Savings\": 42217.0\r\n}"

I tried the following but it's not working. Is it because of the special characters?

var val = JToken.Parse(oldRecord[2]);

Upvotes: 0

Views: 1095

Answers (1)

Bloodday
Bloodday

Reputation: 303

it is for the parameterValues= part, you need to stripe that out of the string

Upvotes: 1

Related Questions