/// <summary> /// Visit a JSON member. /// </summary> /// <param name="jsonMember">The JSON member to visit.</param> /// <returns>The type that was visited.</returns> protected override string VisitMember(JsonMember jsonMember) { return $"\"{jsonMember.Name}\":{Visit(jsonMember.Value)}"; }
/// <summary> /// Returns a value indicating whether the JSON Member has a non-null value. /// </summary> /// <param name="jsonMember">The JSON member to test.</param> /// <returns>true if the JSON member has a non-null value, false if not.</returns> static bool IsNotNull(JsonMember jsonMember) { return jsonMember.Value.GetType() != typeof(JsonNull); }