sdk/dotnet/src/Microsoft.Datasync.Client/Serialization/ServiceSerializer.cs
/// <summary>
/// Given a JSON string, return it as a <see cref="JObject"/> or return <c>null</c> if not valid.
/// </summary>
/// <param name="json">The json string to parse.</param>
/// <returns>The <see cref="JObject"/> value, or <c>null</c></returns>
Given a JSON string, return it as a  or return null
Given a JSON string return it as a or return null
public JObject DeserializeObjectOrDefault(string json)
        {
            var item = string.IsNullOrEmpty(json) ? null : JsonConvert.DeserializeObject<JToken>(json, SerializerSettings);
            return item is JObject obj && obj.Value<string>(SystemProperties.JsonIdProperty) != null ? (JObject)item : null;
        }
public JObject DeserializeObjectOrDefault ( string json ) { var item = string . IsNullOrEmpty ( json ) ? null : JsonConvert . DeserializeObject < JToken > ( json , SerializerSettings ) ; return item is JObject obj && obj . Value < string > ( SystemProperties . JsonIdProperty ) != null ? ( JObject ) item : null ; }
Given a JSON string, return it as a  or return null
Given a JSON string return it as a or return null
The  value, or null
The value or null
json
string
The json string to parse.
The json string to parse .