We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0ba4099 commite37aabbCopy full SHA for e37aabb
src/NLog/Layouts/JSON/JsonAttribute.cs
@@ -165,10 +165,10 @@ internal bool RenderAppendJsonValue(LogEventInfo logEvent, IJsonConverter jsonCo
165
if(!Encode)
166
{
167
varvalueStart=builder.Length;
168
-if(!RenderAppendJsonValue(logEvent,builder,valueStart))
169
-returnfalse;
+returnRenderAppendJsonValue(logEvent,builder,valueStart);
170
}
171
-elseif(ValueTypeisnull)
+
+if(ValueTypeisnull)
172
173
builder.Append('"');
174
@@ -178,7 +178,7 @@ internal bool RenderAppendJsonValue(LogEventInfo logEvent, IJsonConverter jsonCo
178
179
Targets.DefaultJsonSerializer.PerformJsonEscapeWhenNeeded(builder,valueStart,EscapeUnicode);
180
181
-}
+}
182
else
183
184
varobjectValue=_layoutInfo.RenderValue(logEvent);
@@ -187,7 +187,6 @@ internal bool RenderAppendJsonValue(LogEventInfo logEvent, IJsonConverter jsonCo
187
188
jsonConverter.SerializeObject(objectValue,builder);
189
190
-
191
returntrue;
192
193