public static string ToJson(this IElementNavigator source, FhirJsonSerializationSettings settings = null) => SerializationUtil.WriteJsonToString(writer => source.WriteTo(writer, settings), settings?.Pretty ?? false);
/// <inheritdoc cref="ToJsonAsync(ISourceNode, FhirJsonSerializationSettings)" /> public static string ToJson(this ISourceNode source, FhirJsonSerializationSettings settings = null) => SerializationUtil.WriteJsonToString(writer => source.WriteTo(writer, settings), settings?.Pretty ?? false, settings?.AppendNewLine ?? false);