I have a String of json and need convert to JObject.
Example:
String result = ""{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Municipio__c","url":"/services/data/v37.0/sobjects/Municipio__c/a0V2C000000gIgzUAE"},"Id":"a0V2C000000gIgzUAE","LastModifiedDate":"2017-08-01T18:12:04.000+0000"}]}";"
var json = JObject.Parse(result);
But in the moment of the convertion, the LastModifiedDate has changed the value to my Time Zone.
Like that:
{{
"totalSize": 1,
"done": true,
"records": [
{
"attributes": {
"type": "Municipio__c",
"url": "/services/data/v37.0/sobjects/Municipio__c/a0V2C000000gIgzUAE"
},
"Id": "a0V2C000000gIgzUAE",
"LastModifiedDate": "2017-08-01T15:12:04-03:00"
}
]
}}
The hour was changed: 18:12:04 (hh:MM:ss) to 15:12:04 (hh:MM:ss).
Is there a way to ignore the Time Zone on the parse?
JObject.Parse
doesn't modify strings. It can't. Strings are immutable. Where did the modified string come from? Besides - the time hasn't changed. It's EXACTLY the same. – MalaiseJObject
@PanagiotisKanavos – Manchu