コード例 #1
0
 public static string ToJson(this IElementNavigator source, FhirJsonSerializationSettings settings = null)
 => SerializationUtil.WriteJsonToString(writer => source.WriteTo(writer, settings), settings?.Pretty ?? false);
コード例 #2
0
 /// <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);